title: Can't login to website using windows authentication IIS
body: <p>I've been searching for a solution for this headache for a quite long. </p>
  
  <p>I have a website that I want to deploy to my web server, so I'm using IIS 7 and followed these steps to authenticate logging into it:</p>
  
  <p>1- Open IIS</p>
  
  <p>2- Add Website (with random port number)</p>
  
  <p>3- Set the application pool for it to a specific Identity </p>
  
  <p>4- Disable Anonymous authentication then enable Windows Authentication.</p>
  
  <p>5- Remove "Allow All users" rule </p>
  
  <p>6- Add allow rule for an admin user and give him full control access </p>
  
  <p>When I try to access it it asks for a username and password which must be the same user as the one added in step 6 .</p>
  
  <p>The problem is whenever I click ok the logging window keeps popping up and can't access the website as a result </p>
  
  <p>I also tried to add deny rule for anonymous users </p>
  
  <p>Is there anything must be added to web.config file or something ? Do I need to install something or disable something ?</p>
  
  <p>Any suggestion is very appreciated </p>
  
  <p><strong>EDIT</strong>
  This is my web.config file authorization section </p>
  
  <pre><code>&lt;system.web&gt;
    &lt;authentication mode="Windows" /&gt;
    &lt;compilation targetFramework="4.5" /&gt;
    &lt;httpRuntime targetFramework="4.5" /&gt;
    &lt;pages validateRequest="false"&gt;&lt;/pages&gt;
      &lt;identity impersonate="false" /&gt;
    &lt;authorization&gt;
      &lt;allow users="SomeUser" /&gt;
      &lt;deny users="*"/&gt;
    &lt;/authorization&gt;
  
  
  &lt;/system.web&gt;
  </code></pre>