I have a Sharepoint solution that uses the Security and Resources ASMX web services.
I'm currently using the hard-coded way of authenticating these services, but I want to implement a more universal way of doing it. I want to use the Windows credentials of the user that executes the program.
securityService.Credentials = new NetworkCredentials("Administrator","admin","domain");
I tried the following one, but with no success:
securityService.UseDefaultCredentials = true; //with and without this securityService.Credentials = System.Net.CredentialCache.DefaultCredentials; //I also tried the DefaultNetworkCredentials
I get an
"Unhandled Communication Fault occured"
error when I try to access one of the web services functions