customErrors settings - iis virtual directory problem

Discussion in 'ASP .Net' started by Dan, Nov 26, 2004.

  1. Dan

    Dan Guest

    hi ng,

    when i wanted add a page users get forwarded to when the authentication
    failed, i had to divide my application in a protected and a not
    protected (for the error page) area.
    so i added a

    <location path="path">

    area in the web.config with a customErrors settings
    as a result, i got the error

    Parser Error Message: It is an error to use a section registered as
    allowDefinition='MachineToApplication' beyond application level. This
    error can be caused by a virtual directory not being configured as an
    application in IIS.

    so i made the path an IIS virtual dir.
    by doing so, i stepped in a field where (consulting google, where i
    didn't find a solution that worked) many people seem to detect problems.
    the following error occurs when i run the application:

    Parser Error Message: Could not load type 'x.y.z'.

    i don't get this: the class name is ok, since i didn't change nothing.
    and it's running ok when the dir is not a iis application.
    any ideas?
    or maybe there is another way to have a authentication failed side,
    without dividing in a protected an a non protected area?

    thanks very much for any help.
    i have been trying and searching for two days.

    Dan, Nov 26, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.