Thursday, 21 November 2013

the remote server returned an error 401 unauthorized sharepoint client object model

Share it Please
Solution:-

NetworkCredential credentials = new NetworkCredential("username", "pwd", "domain");
ClientContext context = new ClientContext("http://site-url");
context.Credentials = credentials;

No comments:

Post a Comment

Followers

Follow The Author