I have a website set up that has a web.config in the root directory. There are also 3 sub directories that each have a web.config that is used for permissions. My problem is that when I try to get the custom errors to work. I have the following code in the root level web.config.
<customErrors mode="On" defaultRedirect="Error.htm" />
<deny users="?" />
I have the following code in one of the sub directories:
<customErrors mode="On" defaultRedirect="Error.htm">
<error statusCode="401" redirect="Admin401.htm" />
When I receive a general error the Error.htm page works as it should. What I am trying to get to work is the 401.2 error page. In the subfolder the web.config looks like this:
How do I get the 401.2 error to use my Admin401.htm?