title: Trying to set up an application in IIS gives me error: Error message 401.2.: Unauthorized: Logon failed due to server configuration
body: <p>I created a web application by going to IIS right-clicking on <strong>Default Web Site</strong> and selecting <strong>Add Application</strong>.  Then I give the Alias name, select <strong>DefaultAppPool</strong> and point it to Physical path.  </p>
  
  <p>When I try to browse to <a href="http://localhost/mywebapp" rel="nofollow noreferrer">http://localhost/mywebapp</a>  I get 'Access is denied' with following details:</p>
  
  <blockquote>
    <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>
  
  <ul>
  <li><strong>Anonymous Authentication</strong> is enabled on the IIS Website.</li>
  <li>The web application is ASP.NET MVC5 application. </li>
  <li>The web application is running under its default identity: <strong>ApplicationPoolIdentity</strong></li>
  </ul>
  
  <p>Here are the settings for DefaultAppPool </p>
  
  <p><img src="https://i.stack.imgur.com/qyHnh.png" alt="enter image description here"></p>