Re: Debugging returning 401 HTTP error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 04/06/04


Date: Tue, 06 Apr 2004 00:25:01 GMT

Hi James,

Thanks for your confirm. I'm glad that you've resolved the problem. And the
reason why my former messages lost may due to the the too big size make
them get lost. Here is my initial reply

===============================================================
Hi James,

>From your description, you failed to use F5 debug on an ASP.NET web app in
VS.NET and you got the 401 error from the IIS log ,yes?

What about the operation system and the FRAMEWORK and IIS version?
Also, you've mentioned that you've tried many common steps on this problem
still with no success. I also feel a bit strange since all the steps
you've tried not work at all. Here are some of my suggestions:
1. Is the normal console .net application able to debug correctly? If not
you'd have to manually register the mscordbi.dll via regsvr32

2. Please check whether the "Machine Debug Manager" service is started
properly. If no, please stop it and restart again. Also, as you mentioned
that you've tried the aspnet_regiis -i to reinstall the ASP.NET, I think
you can retry this via the following sequence:
aspnet_regiis -u
aspnet_regiis -i

3.As you also mentioned that it seems that the http debug request is denied
from the IIS, I suspect that whether the problem is due to the Integrated
autentiation in IIS. In other word, maybe Windows Integrated (NTLM)
authentication was failing in IIS, and this authentication is required for
ASP.NET Debugging to work.
NTLM authentication was failing because HTTP Keep-Alives were disabled. You
may have a view at the following kb article:
#Web Browsers Receive "HTTP 401.5" Error When You Use Windows NT
Challenge/Response
http://support.microsoft.com/?id=288323

#NTLM Authentication Is Lost on Every Call
http://support.microsoft.com/?id=323683

The above items are some additional ideas I've got from some former similar
cases(some others finally ended with reinstall). If they still not work, I
think there maybe some strange problem occured in the IIS or asp.net
internal. Then, it would require intensive troubleshooting which would be
done quickly and effectively with direct assistance from a Microsoft
Support Professional through Microsoft Product Support Services if you do
think it is an urgent issue. Thanks.
======================================================================

Also, I've tried sending it to you via email but the mail address seems
unreachable. Anyway, Thanks again for posting here.

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • Re: Debugging returning 401 HTTP error
    ... I enabled it again and now I can debug! ... > What about the operation system and the FRAMEWORK and IIS version? ... > ASP.NET Debugging to work. ... > NTLM authentication was failing because HTTP Keep-Alives were disabled. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: NTLM authentication IE8 on windows 7
    ... Internet Explorer send NTLM authentication. ... IIS is capable of remote ... control of the validity of this token which is a domain controller or ... Try to view options in IIS in the properties of website ...
    (microsoft.public.security)
  • IIS 6.0 and Web Services
    ... I have just installed windows server 2003 and am attemping to get my web ... service to work in IIS 6.0. ... I am afraid that I lost in all the security and ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: restore sharePoint on SBS 2003
    ... How to re-install Internet Information Services (IIS) 6.0 in Windows ... >A system crash forced us to restore IIS, after doing so we lost ...
    (microsoft.public.windows.server.sbs)
  • Fetching a copy from a live server, need help
    ... IIS 5.1 maybe 6.0 Remote ... I lost my HD on my laptop, and thus my working copy of my site. ... When I published my site I copied everything into a folder on the web ... I am having problems getting it back from the server and into VS. ...
    (microsoft.public.dotnet.framework)