ASP.NET 2.0 Web Service Problem

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.
 
D

Douglas Adams

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
 
P

Patrick.O.Ige

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top