T
tom.sorensen
Hi.
I'm trying to authenticate from an asp.net client to a web service on
two different machines is the same domain. From what i gather I'm
supposed to use the following code in my client in order to
authenticate using my domain credentials:
service.Credentials = CredentialCache.DefaultCredentials ;
I am using windows integrated authentication. I can get this to work if
I use a NetworkCredential object and supply username, password and
domain, but this is not desireable.When I try to use DefaultCredentials
I get a 401 access denied response.
The IIS log files on the web service server does not contain any user
other than the ones where i supply the network credentials with a
hardcoded user.
I'm trying to authenticate from an asp.net client to a web service on
two different machines is the same domain. From what i gather I'm
supposed to use the following code in my client in order to
authenticate using my domain credentials:
service.Credentials = CredentialCache.DefaultCredentials ;
I am using windows integrated authentication. I can get this to work if
I use a NetworkCredential object and supply username, password and
domain, but this is not desireable.When I try to use DefaultCredentials
I get a 401 access denied response.
The IIS log files on the web service server does not contain any user
other than the ones where i supply the network credentials with a
hardcoded user.