How do I retrieve view data on client-side at https://www.x.com/x1/x2/x3/allitems.aspx that I have access to? The code I've got so far:
ClientContext context = new ClientContext("https://www.x.com");
// The SharePoint web at the URL.
Web web = context.Web;
// Retrieve all lists from the server.
context.Load(web.Lists);
I get access denied error with above code. How do I force the code to look in the URL to the view (https://www.x.com/x1/x2/x3/allitems.aspx), instead of the URL to the site (https://www.x.com)?