title: why does windows authentication / impersonation fail on asp.net application with iis 7.5 / windows 7 /
body: <p>I'm troubleshooting why I can't get past the login dialog on an ASP.Net site configured for Windows Authentication and Impersonation. </p>
  
  <p>I have an ASP.Net 2.0 application and I'm trying to deploy it on Windows 7 with IIS 7.5. I've created a new site, and bound it to localhost and a fully qualified domain name. the FQDN is in my hosts file, and is redirected to 127.0.0.1</p>
  
  <p>The site is also running with an AppDomain I created, with integrated pipeline mode, and the process model identity is set to ApplicationPoolIdentity.</p>
  
  <p>Web.config includes the following:</p>
  
  <pre><code>&lt;trust level="High" /&gt;
  &lt;authentication mode="Windows" /&gt;
  &lt;authorization&gt;
    &lt;deny users="?"/&gt;
  &lt;/authorization&gt;
  &lt;identity impersonate="true"/&gt;`
  </code></pre>
  
  <p>ACL on the directory for the site is set to Everyone (Full Control - For testing). 
  The Application Pool virtual account (Windows 7 thing) is set to full control on the physical directory for the site also.</p>
  
  <p>IIS authentication has ASP.Net impersonation enabled and Windows Authentication enabled.</p>
  
  <p>When I connect to the site as localhost, it permits me to get past the login prompt and the application loads without incident.</p>
  
  <p>When I connect to the site as the FQDN set in the host headers bindings for this site/ip/port, I cannot get past the login prompt. Clicking cancel generates a http 401.1 error page.</p>
  
  <p>Why?</p>