title: MVC "Access is Denied" using IIS
body: <p>Having serious trouble getting beyond &quot;Access is Denied&quot; message:</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>
  <h3>How I got here</h3>
  <p>Running under Windows 7, Professional.  System using AD for login to system (name: SYSTEM\login). Created a new MVC 3 application in VS2010 called XYZ. Made no changes to code.  Set referenced files for System.Web.mvc and System.Web.Helpers to Copy to Local = true.</p>
  <h3>What I attempted</h3>
  <ol>
  <li>Published XYZ to file system location &quot;C:/websites/XYZ&quot;.</li>
  <li>Added &quot;abc.xyz.com&quot; to hosts file with IPA 127.0.0.1.</li>
  <li>Created new Site in IIS Manager called &quot;XYZ&quot; and set the physical path to the path where the app is published (C:/websites/XYZ).</li>
  <li>Bound XYZ to abc.xyz.com:80.</li>
  <li>Ensured Application Pool for site runs .NET 4.0, Integrated.</li>
  <li>Application Pool Identity set to ApplicationPoolIdentity.</li>
  <li>At physical location of published files, right-clicked folder and went to Properties-&gt;Security and added IUSR to list of users, giving it Full Control.</li>
  <li>MVC project has authentication mode set to &quot;None&quot;.</li>
  <li>Authentication for site has Anonymous Access enabled and all else disabled.</li>
  <li>I have also enabled Directory Browsing for the site.</li>
  </ol>
  <p>After all this, I reset the web site, refresh the browser, and reset IIS.  I still get this message when I go to abc.xyz.com.  I have absolutely no idea what I should check next.</p>
  <h3>What I need</h3>
  <p>Can anyone help me with this?  I have performed several Google searches with combinations of &quot;mvc localhost access denied&quot; and so forth, and I implemented the suggestions I found.</p>