Search code examples
asp.net-mvc-4authenticationiis-7.5windows-authentication

After Server reboot integrated authentication no longer works with IIS Site


My server which hosts my IIS site has just rebooted, now when i navigate to my internal site, im getting a 401 challenge, it should be windows integrated. it doesnt accept credentials either.

below is the current config, it all worked prior to the reboot and i havent changed any code since. any ideas?

Thanks

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 Settings

Authentication
Anyon: Enabled
ASP.net Imper Enabled
Windows Auth Enabled

Application Pool

.net 4.9
Managed pipeline intergrated
identity applicationpoolidentity

Solution

  • I fixed this. my server needed an SPN adding