G
Guest
I have a ASP.NET web page that calls a web service on a server with IIS
installed on it. When it calls the web service, it gives a HTTP status 401
error stating that it is unauthorized to call the web service. After
searching the Microsoft Knowledge Base, article ID 811318 describes my exact
problem. However, when I try to implement the stated solution, I still
receive the same error.
Basically if I add the following line of code, it should fix my problem but
it doesn't.
WebService.credentials=system.net.credentialcache.defaultcredentials
(where WebService is a reference to the web service on the server)
I checked the directory security of the web service in IIS and anonymous
access has been turned off and Integrated Windows authentication has been
switched on.
Any help would be greatly appreciated.
Thanks.
installed on it. When it calls the web service, it gives a HTTP status 401
error stating that it is unauthorized to call the web service. After
searching the Microsoft Knowledge Base, article ID 811318 describes my exact
problem. However, when I try to implement the stated solution, I still
receive the same error.
Basically if I add the following line of code, it should fix my problem but
it doesn't.
WebService.credentials=system.net.credentialcache.defaultcredentials
(where WebService is a reference to the web service on the server)
I checked the directory security of the web service in IIS and anonymous
access has been turned off and Integrated Windows authentication has been
switched on.
Any help would be greatly appreciated.
Thanks.