【发布时间】:2013-11-28 17:19:45
【问题描述】:
托管我的 IIS 站点的服务器刚刚重新启动,现在当我导航到我的内部站点时,我遇到了 401 挑战,它应该是 Windows 集成的。它也不接受凭据。
以下是当前配置,它在重新启动之前全部工作,此后我没有更改任何代码。有什么想法吗?
谢谢
网络配置
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" />
<authentication mode="Windows" />
<identity impersonate="true" />
<authorization>
<deny users="?" />
</authorization>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider">
<providers>
<clear />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.0">
IIS 设置
Authentication
Anyon: Enabled
ASP.net Imper Enabled
Windows Auth Enabled
应用程序池
.net 4.9
Managed pipeline intergrated
identity applicationpoolidentity
【问题讨论】:
标签: asp.net-mvc-4 authentication iis-7.5 windows-authentication