HTTP 错误 401.2 - 未经授权 由于身份验证标头无效,您无权查看此页面(对于匿名身份验证)

Sai*_*ini -1 iis-8.5

当我尝试访问我的网站时遇到此错误:-

\n\n
HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers.\nMost likely causes:\n\xe2\x80\xa2   No authentication protocol (including anonymous) is selected in IIS. \n\xe2\x80\xa2   Only integrated authentication is enabled, and a client browser was used that does not support integrated authentication. \n\xe2\x80\xa2   Integrated authentication is enabled and the request was sent through a proxy that changed the authentication headers before they reach the Web server. \n\xe2\x80\xa2   The Web server is not configured for anonymous access and a required authorization header was not received. \n\xe2\x80\xa2   The "configuration/system.webServer/authorization" configuration section may be explicitly denying the user access. \nThings you can try:\n\xe2\x80\xa2   Verify the authentication setting for the resource and then try requesting the resource using that authentication method. \n\xe2\x80\xa2   Verify that the client browser supports Integrated authentication. \n\xe2\x80\xa2   Verify that the request is not going through a proxy when Integrated authentication is used. \n\xe2\x80\xa2   Verify that the user is not explicitly denied access in the "configuration/system.webServer/authorization" configuration section. \n\xe2\x80\xa2   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. \nDetailed Error Information:\nModule     UrlAuthorizationModule\nNotification       AuthorizeRequest\nHandler    ExtensionlessUrlHandler-Integrated-4.0\nError Code     0x80070005\n\nPhysical Path      D:\\Logs\nLogon Method       Anonymous\nLogon User     Anonymous\n\nMore Information:\nThis 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. \nView more information \xc2\xbb\nMicrosoft Knowledge Base Articles:\n\xe2\x80\xa2   907273 \n\xe2\x80\xa2   253667\n
Run Code Online (Sandbox Code Playgroud)\n\n

我只能使用匿名身份验证,有人可以帮忙吗?

\n

Dav*_*d W 5

这个令人难以置信的模糊问题和答案实际上让我找到了针对 IIS 中的匿名身份验证资源的 HTTP 401.2 Unauthorized 特定问题的正确解决方案。IIS 中的“授权规则”元素允许显式允许/拒绝条目,并具有“所有匿名用户”的显式选项。指定这个解决了一个访问问题,我花了一天的大部分时间试图解决,我想我应该在此处添加额外的细节。


Ste*_*ith 5

对我来说,解决方案是进入 IIS 管理器,选择网站,右键单击“身份验证”,选择“开放功能”,然后启用“匿名身份验证”。

这个问题有更多可能的解决方案,因为似乎有无数不同的原因:- HTTP Error 401.2 - Unauthorized 由于身份验证标头无效,您无权查看此页面

  • 对于那些不了解 IIS 的人来说,实际说明比不告诉您如何解决问题的解释更好。 (2认同)