I
Ivan Smith
I am using asp.net (1.1) and am setting application security in web.config using:
<customErrors mode="On" defaultRedirect="Denied.htm"><error statusCode="401" redirect="Denied.htm" /><error statusCode="403" redirect="Denied.htm" /></customErrors
If I try to authenticate with invalid credentials more than 4 times, the page redirects to Denied.htm as it should, but if I click on "Cancel" instead of "Ok" on the login prompt box, I get redirected to an ASP.Net page that looks like this
I have tried to set the Custom Error pages for all 401 errors in IIS and the page still will not redirect to my custom error page as specified in both IIS and Web.config. Please Help
<customErrors mode="On" defaultRedirect="Denied.htm"><error statusCode="401" redirect="Denied.htm" /><error statusCode="403" redirect="Denied.htm" /></customErrors
If I try to authenticate with invalid credentials more than 4 times, the page redirects to Denied.htm as it should, but if I click on "Cancel" instead of "Ok" on the login prompt box, I get redirected to an ASP.Net page that looks like this
Server Error in '/munkeys/WindowsAuth' Application
-------------------------------------------------------------------------------->>>Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be >configured for access to the requested URL.
I have tried to set the Custom Error pages for all 401 errors in IIS and the page still will not redirect to my custom error page as specified in both IIS and Web.config. Please Help