title: Windows authentication keeps asking username password even credentials are correct
body: <p>I have developed an application to allow windows authentication and hosted it to the live server. in my local pc i am able to get the username password. but when i am accessing from web (e.g. websso.mydomain.com) it keeps asking credentials even after i entered correct credentials.</p>
  
  <pre><code>&lt;authentication mode="Windows"&gt;
  &lt;/authentication&gt;
  
  &lt;authorization&gt;
    &lt;deny users="?" /&gt;
  &lt;/authorization&gt;
  &lt;identity impersonate="true"/&gt;
  </code></pre>
  
  <p>i have added above tags in web.config, hosting server is windows server 2008 R2. I have tried to get username from </p>
  
  <pre><code>WindowsIdentity.GetCurrent().Name
  Environment.Username
  Request.ServerVariables["LOGON_USER"]
  Request.ServerVariables["AUTH_USER"]
  HttpContext.Current.Request.LogonUserIdentity.Name
  </code></pre>
  
  <p>Is there any changes which needs to do in IIS or any steps to follow to configure windows authentication.</p>
  
  <p>Installed IIS version is 7.5</p>