服务器重新启动后,集成身份验证不再适用于IIS站点

时间:2013-11-28 17:19:46

标签: asp.net-mvc-4 authentication iis-7.5 windows-authentication

托管我的IIS站点的服务器刚刚重新启动,现在当我导航到我的内部站点时,即时获得401挑战,它应该是Windows集成的。它也不接受凭证。

下面是当前的配置,它在重启之前都工作,我没有更改任何代码。任何想法?

由于

webconfig

<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

1 个答案:

答案 0 :(得分:0)

我修好了。我的服务器需要添加SPN

相关问题