Custom Error - Access Denied

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
 
M

[MSFT]

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

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top