Custom Error - Access Denied

  • Thread starter Thread starter Michael Hetrick
  • Start date Start date
M

Michael Hetrick

If I set authorization in a web.config file to only allow certain
individuals access to pages, those users who are not named receive an access
denied message:

---------------------------------
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.

Error message 401.2.: You do not have permission to view this directory or
page using the credentials you supplied. Contact the Web server's
administrator for help.
---------------------------------

Where is this error coming from? Can this error be added to the
<customErrors> tag in the web.config or is this an exception that needs to
be handled in code?

Thanks for the assistance.

Michael
 
Hi Michael,

Thank you for using the community. The error comes from your ASP.NET
appliaction when a user can't be authenticated. We can handle it within
setting <customErrors>. For a sample, you may refer to:

HOW TO: Create Custom Error Reporting Pages in ASP.NET Using Visual Basic
..NET
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q308132

Regards,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top