Hi,
I want to access some data from Sharepoint List in datatable or any other source. when i run the below code i got the an error
My code (in concole application):
ClientContext clientContext = new ClientContext(@"https://");
clientContext.Credentials = new System.Net.NetworkCredential(userName: "name", password: "pwd", domain: "mydomain");
Web site = clientContext.Web;
clientContext.Load(site);
clientContext.ExecuteQuery();
Console.WriteLine("Title: {0}", site.Title);
Error:
Cannot contact site at the specified URL https://
Cannot contact site at the specified URL @"https://" at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()\r\n at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()\r\n at GetListItems.Program.Main(String[] args)
Thanks in advance