Hello,
- I write the following code in console application to read data from list by client object Model :
ClientContext context = new ClientContext("servername/sites/Dhofar/en-us");
List list = context.Web.Lists.GetByTitle("MenuList");
context.Load(list);
context.ExecuteQuery();
Console.WriteLine(list.Title);
Console.ReadKey(false);
- I got an exception "The remote server returned an error: (403) Forbidden." on line "context.ExecuteQuery()"
- I run the console application the same server that has a SharePoint.
How Can I solve this problem?
ASk