title: web site configuration
body: <p>One web site is required to be accessed by me (developer) and one user (DOMAIN_NAME\USER_NAME).</p>
  <p>When I developed web site in visual studio using &quot;automatic host&quot; created by VS, the following settings in web.config were enough:</p>
  <pre><code>&lt;authentication mode=&quot;Windows&quot;/&gt;
  &lt;authorization&gt;
    &lt;allow users=&quot;DOMAIN_NAME\my_name,DOMAIN_NAME\USER_NAME&quot; /&gt;
    &lt;deny users=&quot;*&quot; /&gt;
  &lt;/authorization&gt;
  </code></pre>
  <p>But when I created web site in IIS I'm receiving error:</p>
  <blockquote>
  <p>Access is denied.</p>
  <p>Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.</p>
  <p>Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.</p>
  </blockquote>
  <p>What  setting for ApplicationPoolIdentity and web site itself are required to be specified?</p>
  <p>Thanks a lot!</p>
  <p><strong>EDIT:</strong></p>
  <p>I've configured Application Pool of local IIS to use 'LocalSystem' identity, web site - to use &quot;pass-through&quot; authentication, and as suggested disabled &quot;Anonymous Authentication&quot;, enabled &quot;Windows Authentication&quot; - and web site locally became workable.</p>
  <p>But locally I have windows 7 (IIS7), but on &quot;TEST&quot; environment (where I need to deploy web site) I have windows 2008 server and it doesn't have option to enable &quot;Windows Authentication&quot;... don't know why... probably that is for higher level of administrator, but I'm a member of Administrators group...</p>
  <p>Guess, I'm doing something wrong...</p>
  <p>Please advise.</p>