Re: Problem with web service credentials
- From: "Henning Krause [MVP - Exchange]" <newsgroups_remove@xxxxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 19:50:27 +0200
Hello,
I guess you have impersonation turned on in you website and the webservice is on another computer.
In this case, you are using the credential from the client and pass it along to the webservice. This breaks with NTLM authentication.
You have two options then:
- Implement Kerberos authentication (see http://dunnry.com/blog/ConfiguringKerberosDelegation.aspx).
- Turn off Windows authentication and use basic authentication. But you should do this only if you are protecting the website with SSL. Additionally, this will remove the single-sign-on experiences for the end users.
Best regards,
Henning Krause
"Takumi" <Takumi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BFDFF37D-50F5-4606-A2FA-2A7E435FD2E0@xxxxxxxxxxxxxxxx
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.
.
- Prev by Date: Re: Error installing Windows Services on Windows Server 2003
- Next by Date: Re: Does anyone know what this is?
- Previous by thread: Validation Block QuickStart (Enterprise Library 3.0)
- Next by thread: Re: Problem with web service credentials
- Index(es):
Relevant Pages
|
Loading