• Register
0 votes
2k views

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

Please log in or register to answer this question.

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 3 views
3 views
Problem: What are my options for resolving this problem “Failed to load resource: the server responded with a status of 405 (method not allowed)”?
asked Mar 30 tuhin1 48.4k points
0 votes
1 answer 8 views
8 views
Problem : why this is still happining : Failed to load resource: the server responded with a status of 500 (internal server error).
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 22 views
22 views
Problem: When I try to upgrade my database from Mvc-AngularJs to wcf-Rest, I get an error like Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9706/EmployeeService.svc/UpdatexyzData/Update/but with the same ur when I try to get ... : { 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded ;charset=utf-8' } }) return ss; }
asked Jan 24 sasha 16.2k points
0 votes
0 answers 30 views
0 votes
1 answer 3.2K views
3.2K 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 12 views
12 views
Problem: the requested resource does not support http method 'get'.
asked Feb 20 charles mathews 5.5k points
1 vote
1 answer 567 views
567 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
0 votes
1 answer 6 views
6 views
Problem: On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error. There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section Any pointers on what I need to do or look at?
asked Mar 19 ummesalma 24.5k points
0 votes
1 answer 514 views
514 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, 2020 alecxe 7.5k points
2 votes
1 answer 85 views
85 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, 2020 stewart 4k points