title: Windows Authentication works in IISExpress but not in IIS
body: <p>I am having an odd issue. I am using the newest MVC5 in Visual Studio 2013. I am trying to create a site that hosts an anonymous API as well as an Admin dashboard that requires intranet domain credentials through Windows Authentication. Everything works when running through IIS Express like I expect but not when hosted in real IIS.</p>
  
  <p>When hosted in real IIS it gives me a logon box like I expect for the Admin portion but it doesn't take my logon and keeps prompting me. I know it is the right username and password for sure. Any idea why this is happening?</p>
  
  <p>I have Windows Authentication installed in Windows Features and turned on in IIS for the site and all that.</p>
  
  <p>Below is my setup..</p>
  
  <pre><code>[Authorize]
  public class DashboardController : Controller
  
  &lt;add key="EnableSimpleMembership" value="false" /&gt;
  
  &lt;authentication mode="Windows"/&gt;
  &lt;authorization&gt;
     &lt;allow users="?" /&gt;
  &lt;/authorization&gt;
  &lt;/system.web&gt;
    &lt;location path="gsapi"&gt;
      &lt;system.webServer&gt;
        &lt;security&gt;
          &lt;authentication&gt;
            &lt;anonymousAuthentication enabled="true"/&gt;
            &lt;windowsAuthentication enabled="true"/&gt;
          &lt;/authentication&gt;
        &lt;/security&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6COxu.png" alt="enter image description here"></p>