Can't catch the error: HTTP 401.2

S

sck10

Hello,

I have custom errors turned on, and am able to catch errors and send the
user to a friendly page. I have one site with "authentication" turned on.
I would like to send a person who doesn't have access rights to a user
friendly page, but I can't catch the following:

HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Internet Information Services

Any help with this would be appreciated.
 
S

Steven Cheng[MSFT]

Hi Sck10,

Welcome to ASP.NET newsgroup.
As for the
=============
HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Internet Information Services
=============

error you mentioned, it is caused by the IIS's authentication, that means
the error occur when the IIS do the authentication checking. And the
CustomError you mentioned is used to catch and display ASP.NET runtime
exception, it is unable to catch the error occured at IIS layer(before
ASP.NET process the request). So I think we should check the IIS
authentication setting first.

What's the Authentication setting in your IIS's virtual directory for this
asp.net app? You can check it in the IIS management console(inetmgr.exe)
under the virutal dir's "Directory security" settings. And is your client
user from internet or intranet?

Please feel free to let me know if you have anything else unclear, Thanks,

Regards,

Steven Cheng
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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top