2016-05-16 418 views
-3

當我嘗試我發現了這個錯誤,訪問我的網站: -HTTP錯誤401.2 - 未經授權您無權查看此頁面由於無效的認證頭(匿名認證)

HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers. 
Most likely causes: 
• No authentication protocol (including anonymous) is selected in IIS. 
• Only integrated authentication is enabled, and a client browser was used that does not support integrated authentication. 
• Integrated authentication is enabled and the request was sent through a proxy that changed the authentication headers before they reach the Web server. 
• The Web server is not configured for anonymous access and a required authorization header was not received. 
• The "configuration/system.webServer/authorization" configuration section may be explicitly denying the user access. 
Things you can try: 
• Verify the authentication setting for the resource and then try requesting the resource using that authentication method. 
• Verify that the client browser supports Integrated authentication. 
• Verify that the request is not going through a proxy when Integrated authentication is used. 
• Verify that the user is not explicitly denied access in the "configuration/system.webServer/authorization" configuration section. 
• Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here. 
Detailed Error Information: 
Module  UrlAuthorizationModule 
Notification  AuthorizeRequest 
Handler ExtensionlessUrlHandler-Integrated-4.0 
Error Code  0x80070005 

Physical Path  D:\Logs 
Logon Method  Anonymous 
Logon User  Anonymous 

More Information: 
This error occurs when the WWW-Authenticate header sent to the Web server is not supported by the server configuration. Check the authentication method for the resource, and verify which authentication method the client used. The error occurs when the authentication methods are different. To determine which type of authentication the client is using, check the authentication settings for the client. 
View more information » 
Microsoft Knowledge Base Articles: 
• 907273 
• 253667 

我有隻使用匿名身份驗證,任何人都可以幫忙嗎?

+0

IIS版本是8.5,只有匿名身份驗證與「應用程序池標識」選項啓用。 – Saini

+0

我只能使用匿名身份驗證,任何人都可以幫忙嗎? – Saini

回答

-1

好的,最後我解決了我的問題。

'授權規則'未在系統上設置。

我設置了必要的「授權規則」並能夠成功瀏覽網站。

+4

你能提供更具體的細節嗎? –

+0

提供完整的細節。 –

2

這個令人難以置信的模糊問題和答案實際上導致我正確解決HTTP 401.2的特定問題。未經授權針對IIS中的匿名身份驗證資源。 IIS中的「授權規則」元素允許顯式允許/拒絕條目,並且具有「所有匿名用戶」的顯式選項。指定這個解決了訪問問題我花了一天的更多時間試圖解決,我想我會在這裏添加額外的細節。