title: Detailed solution for ASP.NET Error message 401.3 "Access is denied"
body: <p>I just wrote a sample code for ASP.NET Web Application, using web service. The environment is Visual Studio 2015. My operation system is Windows 8.</p>
  
  <p>When doing debug, the webpage would <em>not</em> show the app from URLs. Rather it reports an error:</p>
  
  <p>"</p>
  
  <p>Server Error in '/' Application.</p>
  
  <p>Access is denied.
  Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.</p>
  
  <p>Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'K:...\WebServicesDemo\WebServicesDemo\CalculatorWebService.asmx'.</p>
  
  <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248 </p>
  
  <p>"</p>
  
  <p>What have I tried:</p>
  
  <p>gave access to "IIS_IUser" but instead it should be "IUSR". That solved the problem. This comes from post: <a href="https://stackoverflow.com/questions/10418669/hosting-asp-net-in-iis7-gives-access-is-denied">Hosting ASP.NET in IIS7 gives Access is denied?</a></p>
  
  <p>I noticed there are some solutions offered, but none of them makes sense to me. Could anyone give me a step by step answer? </p>
  
  <p>For example, I don't understand where to add IIS_IUSRS or IUSR. what are they any way? Second, it seems that neither IIS_IUSRS nor IUSR is recognized in my security folder (right click app folder, property-> security tab)</p>
  
  <p>For more information, my Web.config looks like:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt; 
  &lt;!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --&gt; 
  &lt;configuration&gt; 
  &lt;system.web&gt; 
  &lt;compilation debug="true" targetFramework="4.0"/&gt; 
  &lt;httpRuntime/&gt;
   &lt;/system.web&gt;
   &lt;/configuration&gt; 
  </code></pre>