Thursday, May 12, 2016

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

Solution:-

NetworkCredential credentials = new NetworkCredential("username", "pwd", "domain");
ClientContext context = new ClientContext("http://site-url");
context.Credentials = credentials;
- See more at: http://sharepointdotnetcart.blogspot.ca/2013/11/the-remote-server-returned-error-401.html#sthash.P9dUOXOd.dpuf

No comments:

Post a Comment