asp.net - Azure Web App突然为所有请求返回401.72

标签 asp.net azure iis azure-web-app-service

我遇到了类似于 this one 的问题,但不完全是。

我们有一个包含两个 Azure Web 应用程序的解决方案,由 Visual Studio Online 构建和部署。它已经工作了几个月,但突然所有请求都以 401.72 响应结束:

HTTP Error 401.71 - Unauthorized You do not have permission to view this directory or page.

Most likely causes: The authenticated user does not have access to a resource needed to process the request.

Things you can try: 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 EasyAuthModule_32bit Notification AuthenticateRequest Handler
ExtensionlessUrlHandler-Integrated-4.0 Error Code 0x80004005 Requested URL https://[appname]:80/ Physical Path
D:\home\site\wwwroot Logon Method Not yet determined Logon User
Not yet determined

More Information: This is the generic Access Denied error returned by IIS. Typically, there is a substatus code associated with this error that describes why the server denied the request. Check the IIS Log file to determine whether a substatus code is associated with this failure. View more information »

Microsoft Knowledge Base Articles:

据我所知,尚未进行任何相关配置更改。

重新启动 Web 应用程序并重新部署解决方案未能解决问题

事实上,我们无论如何都要重新创建环境,完成此操作后,相同的部署设置(具有更新的目标)已成功部署,并且在新的 Web 应用程序实例上运行良好。

即使我们现在有了工作环境,我们也真的很想知道发生了什么,这样我们就可以确保它不会再次发生。

有人能解释一下吗?

最佳答案

您已打开简单例份验证。您期望它被打开吗?这似乎是导致问题的原因。

如果您不打算打开它,请通过任一门户 ( old | new ) 导航到您的 Web 应用程序并在设置中找到它来将其关闭。

如果您确实打算打开它,则需要检查您的配置以确保您已正确设置 AAD。也许 AAD 中的应用程序配置已更改?

如果这些都没有帮助,请告诉我。

关于asp.net - Azure Web App突然为所有请求返回401.72,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32861320/

相关文章:

c# - 如何在 css 中突出显示 "onmouseover"?

c# - 在 Azure 中无需修改代码即可部署

asp.net - 我的 system.webServer > staticContent > clientCache 元素阻碍了 CSS、JavaScript 和图像的服务

javascript - 运行 C# 代码后禁用 aspx 页面中的按钮

asp.net - 高并发系统中的缓存访问

azure - 授予帐户创建订阅的权限

asp.net - 从 Github 自动部署到 IIS 上?

windows - Windows 服务器上的 .htaccess 文件

asp.net - 是否有相当于 IE 的 ClearAuthenticationCache 的浏览器?

java - 作为 Azure DevOps CD/CI 一部分的自动化集成测试