HTTP Error 401.2 - Unauthorized

Problem

You get this error when displaying a web page in your application:

HTTP Error 401.2 - Unauthorized

Description: You are not authorized to view this page due to invalid authentication headers. Error Code: 0x80070005

Notification: AuthorizeRequest

Module: UrlAuthorizationModule

Requested URL: http://localhost:80/temp/

Physical Path: C:\Temp\CD\

Logon User: ITSUPPORT\Administrator

Logon Method: Negotiate

Handler: StaticFile

This error can occur when your application is using integrated Windows Authentication, but Windows Authentication is not enabled, or your web application is not configured to use an authentication method.

Solution

The Microsoft knowledge base describes a variety of solutions:  http://support.microsoft.com/kb/942043

See Also

Part IX:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages