Visual Studio .NET - Error 401: Unauthorized When Calling web service
Asked By Craig Vedur on 10-Apr-06 11:56 AM
Hi,
We have a web app that talks to a web service. Everything was working well until we put some 'hardening' software onto the PC. Now, when we try to use the web app, we get "error 401: unauthroized' when it tries to call the webservice.
any ideas why? I'm guessing the software tweaked a bunch of local security policies.
any ideas what to look for?
A 401 is basically what you get - Asked By Peter Bromberg on 10-Apr-06 11:58 AM
when credentials are required and your HTTP request doesn't respond to the challenge with the credentials exepected.
So, the first step is to look at the WebServer that is hosting the web service and find out what kind of authentication it is now requiring that it didn't have before.
where can i find the type of authentication? - Asked By Craig Vedur on 10-Apr-06 12:23 PM
Where on the server do i look for this? in IIS it has 'enable anony. access' and has 'integrated windows auth' checked
If you uncheck "Integrated" - Asked By Peter Bromberg on 10-Apr-06 02:35 PM
and it still doesn't work, then your "hardening" software has done other things.
if i use Administrator instead of IUSR it works? - Asked By Craig Vedur on 11-Apr-06 11:52 AM
If i go into the virtual directory of the webservice and change the anony. user from IUSR_MACHINE to an administrator account, it communicates fine.
Any ideas why? What does the IUSR_MACHINE account need?