title: windows authentication not working in ie7
body: <p>Really need help with this and tried lots of things and run out of ideas.</p>
  
  <p>I have a site hosted on an internal development server, accessible for staff internally.</p>
  
  <p>the server setup is windows 2008 R2, iis 7.5 sql 2008 express. Im authenticating using active directory.</p>
  
  <p>in Chrome the site loads, and automatically logs me in recognising my name.</p>
  
  <p>When viewing the site in IE7 the response is:
  <strong>"401 - Unauthorized: Access is denied due to invalid credentials.
  You do not have permission to view this directory or page using the credentials that you supplied."</strong></p>
  
  <p>I have tried the following:</p>
  
  <ul>
  <li>in iis set only windows authentication to enabled (the rest disabled)</li>
  <li>Moved NTLM to the top of the providers list</li>
  <li>given full control to the web directory to Everyone/IUSR/Network Service/DeafultAppPool ...list goes on.</li>
  <li>checked ie settings (enable integrated windows authentication is checked)</li>
  <li>user authentication in IE7 is set to "automatic logon only in intranet zone".</li>
  <li>set the following in web.config:
  <ul>
  <li><code>&lt;anonymousIdentification enabled="false" /&gt;</code></li>
  <li><code>&lt;authentication mode="Windows" /&gt;</code></li>
  <li><code>&lt;identity impersonate="false" /&gt;</code></li>
  </ul></li>
  <li>Executed: <code>cscript adsutil.vbs set w3svc/NTAuthenticationProviders "NTLM"</code></li>
  </ul>
  
  <p>im convinced its not a browser setting as im authenticated against AD when i access the intranet in IE7.</p>
  
  <p>what is wrong? how can i fix it?</p>
  
  <p>Many thanks</p>