c# web service driving me insane
I have the following in an application:
svc is declared elsewhere as such:
svc = new localhost.Service1();
svc.Credentials = CredentialCache.DefaultCredentials;
Now, logic dicates that that service object will connect with the current user's credentials. Instead, I get an error message (as I put it in a try/catch block) stating 'Server was unable to process request. ---> Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.'
private localhost.Service1 svc;
Why is it trying to log on with the anonymous account?!
Any ideas, as this is driving me to the edge of sanity...