• Register
0 votes

Problem :

I am facing the below error:

Failed to load resource: the server responded with a status of 401 (Unauthorized) http://localhost/App/AngularJS/angular.min.js

My project works fine on the localhost. But when I try to run it on the IIS (7.5) I often face the above exception.

My project is the .net 4.5 project (Web.API 2.2), I am also using AngularJS for UI in my project.

I have already tried running the "aspnet_regiis - i" , however it is not working in my case. I am unable to know is there something required to execute my AngularJS files on the IIS for Web.API project?

Also I have tried to set the read/write/modify access for the "IUSR" & "IIS_ISURS" users of my whole project. But still I am facing the same exception on my IIS.

6 5 3
7,540 points

1 Answer

0 votes

Solution :

When the servers respond with the access denied message (401 Unauthorized access), it usually means that your anonymous IIS user account is unable to access your resources because of the permission issues.

By default the IUSR account is used for the anonymous user.

All you need to do is follow below procedure :

IIS ->Authentication --> Set Anonymous Authentication to Application Pool Identity.

Now your Problem is resolved.

9 7 4
38,600 points

Related questions

0 votes
1 answer 37 views
Problem : I want to send a call using ajax but in Chrome getting following error Failed to load resource: the server responded with a status of 500 (internal server error) But for firefox getting no error. I also tried to record the ajax call in firebug but there is no call request in ... function (msg) { }, error: function (xhr, status, error) { alert(error.responseTextss); } }); }); }); }); }
asked Nov 22, 2019 peterlaw 6.9k points
0 votes
1 answer 246 views
Problem : I am unable to solve my link problem. Can anybody help on to this to link the CSS and JS File? I am facing below error : Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/ ... .js Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/RetailSmart/jsp/Jquery/prettify.js
asked Jan 10 alecxe 7.5k points
1 vote
1 answer 211 views
Problem : We are now running the 32-bit Windows server 2008 with the IIS version of 7. We are trying to publish the asp.net 4.0 webapp but so far our attempts have failed and only yielded the few warnings in our serverlog without even the stopping our 4.0 application ... very badly after that we ran out of the ideas on what to do on our issue so any form of the input would be greatly appreciated.
asked Dec 30, 2019 alecxe 7.5k points
2 votes
1 answer 29 views
Problem : I am learning to host my site on IIS. I am facing below error while trying to host my Asp.net site with the IIS. IIS cannot read configuration file due to insufficient permissions . Please find below the current contents of my web.config file: <?xml version ... research on above error but I am still unable to fix the hosting error. I am looking for the help in fixing the hosting error.
asked May 7 stewart 4k points