get window credential in Window service

Posted by Bhagwatnegi84 under C# on 7/22/2011 | Points: 10 | Views : 1870 | Status : [Member] | Replies : 0
I am facing problem to get window credential in Window service.

My requirement is that I need to call a web service method in window service. Web service required window credential.

I am using below line:

webService.Credentials = CredentialCache.DefaultCredentials;

The above line is working in window application for same scenario but using window service we are not able to fetch data from web service.

Please help


(No response found.)

Login to post response