ASP.NET 2.0 Web Service Problem

  • Thread starter Thread starter Douglas Adams
  • Start date Start date
D

Douglas Adams

The request failed with HTTP status 401: Unauthorized.

Whenever I try to connect to my web service from my ASP.NET web application
I cannot retrieve a simple helloworld string. I can launch the web service
successfully and view the default web page that it produces but I can't
access the web service through my website. Is this a permissions problem ??
If so, how can i change it so that i can access the service?

Many thanks.
 
Oh how stupid I am.

service.Credentials = System.Net.CredentialCache.DefaultCredentials;

Is what i forgot . Guess it's time to call it a day :-S
 
Yeah get a snap Douglas it really helps!!
Pat

Douglas Adams said:
Oh how stupid I am.

service.Credentials = System.Net.CredentialCache.DefaultCredentials;

Is what i forgot . Guess it's time to call it a day :-S
 
Back
Top