Here is my scenario:-
I have my Sharepoint server hosted on Domain A and I have my machine on Domain B. There is not any trust between Domain A and Domain B.
I am trying to access the Sharepoint Document library from my machine to Sharepoint server which is on Domain A.
Now when i used this code:-
ClientContext clientContext = new ClientContext(siteURL);
clientContext.Credentials = new System.Net.NetworkCredential(username,password,domain);
I got the following error:-
The remote server returned an error: (401) Unauthorized
I want to know (Correct me if i am wrong) is it possible to access sharepoint document library accross the domain without having trust between each other and the only solution i think is my machine should be on the Domain A.
I transfered my machine on Domain A that is on that domain where sharepoint server is installed. Still same error getting at clientContext.ExecuteQuery();. I dont know why pelase help.
Thanks in advance