Article ID: 942044 - Last Review: September 25, 2007 - Revision: 1.1 Error message when you try to run a Web application that is hosted on IIS 7.0: "HTTP Error 401.1 - Not Found"On This PageSYMPTOMSWhen you try to run a Web application that is hosted on a server that is running Internet Information Services (IIS) 7.0, you may receive an error message that resembles one of the following error messages:
Error message 1 Server Error in Application "Application Name" HTTP Error 401.1 - Unauthorized HRESULT: 0x8009030c Description of HResult: You do not have permission to view this directory or page using the credentials that you supplied. Error message 2 Server Error in Application "Application Name" HTTP Error 401.1 - Unauthorized HRESULT: 0x8007052e Description of HResult: You do not have permission to view this directory or page using the credentials that you supplied. CAUSEThis problem occurs because the <deny users> list in the Web.config file of the Web application is set to restrict certain users. This setting appears even though IIS 7.0 is configured to authenticate users who have valid Windows credentials. The <deny users> list is in the <authorization> section of the Web.config file. Note The Web application uses the settings in the Web.config file to configure the Web application. RESOLUTIONTo resolve this problem, use one of the following methods. Method 1In the <allow users> list of the Web.config file, add all users to whom you want to assign permissions. To do this, follow these steps:
Method 2Log on to the Web application by using the credentials of a user who appears in the <allow users> list of the Web.config file.MORE INFORMATIONFor more information, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/wce3kxhd(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/wce3kxhd(vs.71).aspx)
| Article Translations
|
Back to the top
