customErrors settings - iis virtual directory problem

D

Dan

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">
<system.web>
....
-------------------

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top