Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • See my updated answer. Your code didn't work either. Although though I tried TokenImpersonationLevel.Impersonation. Commented Aug 28, 2012 at 13:45
  • have u updated your code with referencing this two line also: ls.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials; ls.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation; Commented Aug 28, 2012 at 13:46
  • Ok, I just tried with the following and I got the same exception: creds.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation; creds.ClientCredential = CredentialCache.DefaultNetworkCredentials; Commented Aug 28, 2012 at 14:06
  • also change in config file as above told you Commented Aug 28, 2012 at 14:09
  • Just copied your config over mine and did what you said with the c# part. Still no luck. Same NTLM error. Commented Aug 28, 2012 at 14:21