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
NetworkCredential credentials = new NetworkCredential("username", "pwd", "domain");
ClientContext context = new ClientContext("http://site-url
context.Credentials = credentials;
No comments:
Post a Comment