web service error
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I have already added the web reference. I get this error when I try to access a web service method from my c# windows application. "The request failed with HTTP status 401: Unauthorized." Any ideas please?
If you are able to debug to the point of seeing the exception you will see that the inner exception reads something like The server has actively rejected your connection. In the case of the web service it is an indication that the service is not started. If you server and client are in the same solution, try going into the Solution and marking the project as having two startup projects: your client project AND your webservice project