G
gusTbus
Hi!
I have an authentication problem when trying to access web services on
my local intranet. The web service requires windows authentication.
I want to use asp.net with c# to do this, but every time I try I
allways get
error message "The request failed with HTTP status 401: Unauthorized"
It seem I am not able to pass my credentials trough to the web
service, even though I've included "myservice.Credentials =
CredentialCache.DefaultCredentials;" in the code and has turned
anonymous authentication off in the IIS manager for my application
that is running on localhost.
I do have authorization to use the web services, because when I
compile the same code in a windows appliction project, the service
works fine.
It seems to me that I have some configuration wrong, but being quite a
newbie to .NET web application development, I am clueless.
Hope that someone can help me,
Magnus
I have an authentication problem when trying to access web services on
my local intranet. The web service requires windows authentication.
I want to use asp.net with c# to do this, but every time I try I
allways get
error message "The request failed with HTTP status 401: Unauthorized"
It seem I am not able to pass my credentials trough to the web
service, even though I've included "myservice.Credentials =
CredentialCache.DefaultCredentials;" in the code and has turned
anonymous authentication off in the IIS manager for my application
that is running on localhost.
I do have authorization to use the web services, because when I
compile the same code in a windows appliction project, the service
works fine.
It seems to me that I have some configuration wrong, but being quite a
newbie to .NET web application development, I am clueless.
Hope that someone can help me,
Magnus