我尝试访问我的网站时收到此错误: -
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 :(得分:2)
这个令人难以置信的模糊问题和答案实际上让我找到了针对IIS 401中的匿名身份验证资源的HTTP 401.2 Unauthorized的特定问题的正确解决方案。 "授权规则" IIS中的元素允许显式允许/拒绝条目,并为"所有匿名用户提供显式选项。"指定这解决了一个访问问题,我花了大半天时间试图解决,我想我在这里添加了额外的细节。
答案 1 :(得分:1)
对我来说,解决方案是进入IIS管理器,选择网站,右键单击Authentication,选择Open Feature,然后启用匿名身份验证。
这个SO问题有更多可能的解决方案,因为似乎有各种各样的原因: - HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers
答案 2 :(得分:-2)
好的,最后我解决了我的问题。
'授权规则'未在系统上设置。
我设置了所需的“授权规则”,并且能够成功浏览网站。