title: Angular2/4 : Fetch error: 401 Unauthorized
body: <p>I have recently updated the project from angular2 to angular4 and updated typescript to version 2.2.2</p>
  
  <p>now i am getting this error below when start the application. any ideas why ?</p>
  
  <p>GET <a href="http://localhost/myWEb/Scripts/app/main.js" rel="nofollow noreferrer">http://localhost/myWEb/Scripts/app/main.js</a> 401 (Unauthorized)</p>
  
  <pre><code>(anonymous) @   zone.js:879
  fetchFetch  @   system.src.js:1495
  (anonymous) @   system.src.js:3421
  ZoneDelegate.invoke @   zone.js:365
  Zone.run    @   zone.js:125
  (anonymous) @   zone.js:758
  ZoneDelegate.invokeTask @   zone.js:398
  Zone.runTask    @   zone.js:165
  drainMicroTaskQueue @   zone.js:591
  
  
  
   Error: Fetch error: 401 Unauthorized
    Instantiating http://localhost/myWEb/Scripts/app/main.js
    Loading app/main
      at Scripts/vendor/systemjs/dist/system.src.js:1500:13 [&lt;root&gt;]
      at Scripts/vendor/zone.js/dist/zone.js:758:57 [&lt;root&gt;]
      at drainMicroTaskQueue (zone.js:591) [&lt;root&gt;]
  </code></pre>