title: Failed to load resource: the server responded with a status of 401 (Unauthorized) /App/AngularJS/angular.min.js
body: <p>I am having the following error:</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 401 (Unauthorized) http://localhost/App/AngularJS/angular.min.js
  </code></pre>
  
  <p>The project works fine on localhost. But when I run it on IIS (7.5) I get the above exception.</p>
  
  <p>[Image]
  <img src="https://i.stack.imgur.com/N7rRr.png" alt="enter image description here"></p>
  
  <p>My project is .net 4.5 project (Web.API 2.2), I am using AngularJS for UI in this project.</p>
  
  <p>I have tried running "aspnet_regiis - i" as somewhere this was accepted as solution. But it didn't work in my case. I don't know is there any thing required to execute [AngularJS].js files on IIS for Web.API project?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have made following changes to web.config file:</p>
  
  <pre><code>&lt;location path="AngularJS"&gt;
  &lt;system.web&gt;
    &lt;authorization&gt;
      &lt;allow users="*" /&gt;
    &lt;/authorization&gt;
  &lt;/system.web&gt;
  &lt;/location&gt;  
  &lt;system.web&gt;
    &lt;authorization&gt;
      &lt;allow users="*" /&gt;
    &lt;/authorization&gt;
    &lt;compilation debug="true" targetFramework="4.5" /&gt;
   &lt;httpRuntime targetFramework="4.5" /&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>Also I have set the read/write/modify access for "IUSR" &amp; "IIS_ISURS" users of whole project.
  <img src="https://i.stack.imgur.com/oPYIp.png" alt="enter image description here"></p>
  
  <p>But still I get the same exception on IIS. But same running fine with VS2013.</p>
  
  <p>Error:
  <img src="https://i.stack.imgur.com/oCCm3.png" alt="enter image description here"></p>