title: Windows Authentication not working in IIS Express, debugging with Visual studio 2013, Windows 8
body: <p>I just upgraded my application from Visual studio 2012 to Visual studio 2013. My windows authentication is not working any more. It is giving me below error.</p>
  
  <pre><code>     HTTP Error 401.2 - Unauthorized
       You are not authorized to view this page due to invalid authentication headers.
  </code></pre>
  
  <p>In visual studio there is option to select authentication from website properties itself. So I  disabled anonymous access and enable windows authentication but it is asking me for username and password as below popup. Even if I give domain credentials here. Its is still giving me this popup again and again.</p>
  
  <p><img src="https://i.stack.imgur.com/xRXex.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/XdsWK.png" alt="enter image description here"></p>
  
  <p><strong>Web Config :</strong></p>
  
  <pre><code>     &lt;authentication mode="Windows" /&gt;
       &lt;authorization&gt;
       &lt;deny users="?" /&gt;
       &lt;/authorization&gt;
       &lt;identity impersonate="false" /&gt;
       &lt;trace enabled="true" /&gt;
  </code></pre>
  
  <p><strong>IIS Express aspnetConfig  :</strong></p>
  
  <pre><code>     &lt;authentication&gt;
  
              &lt;anonymousAuthentication enabled="false" userName="" /&gt;
  
              &lt;basicAuthentication enabled="false" /&gt;
  
              &lt;clientCertificateMappingAuthentication enabled="false" /&gt;
  
              &lt;digestAuthentication enabled="false" /&gt;
  
              &lt;iisClientCertificateMappingAuthentication enabled="false"&gt;
              &lt;/iisClientCertificateMappingAuthentication&gt;
  
              &lt;windowsAuthentication enabled="true"&gt;
                  &lt;providers&gt;
                      &lt;add value="Negotiate" /&gt;
                      &lt;add value="NTLM" /&gt;
                  &lt;/providers&gt;
              &lt;/windowsAuthentication&gt;
  
          &lt;/authentication&gt;
  
          &lt;authorization&gt;
              &lt;add accessType="Allow" users="*" /&gt;
          &lt;/authorization&gt;
  
  
  
          &lt;location path="Path"&gt;
          &lt;system.webServer&gt;
          &lt;security&gt;
              &lt;authentication&gt;
                  &lt;windowsAuthentication enabled="true" /&gt;
                  &lt;anonymousAuthentication enabled="false" /&gt;
              &lt;/authentication&gt;
          &lt;/security&gt;
          &lt;/system.webServer&gt;
          &lt;/location&gt;
  </code></pre>
  
  <p>Let me know if you want more details on this.</p>
  
  <p><strong>Update :</strong></p>
  
  <p>I found out that if I remove below line from web.config than it start working.</p>
  
  <pre><code>     &lt;remove users="*" roles="" verbs="" /&gt;
  </code></pre>