So I have a collection of some teamsites and subsites with their lists. And if I for example as a user don't have permissions for one subsite, then I have an exception after sending a request:
var rootWeb = ClientContext.Site.RootWeb; ClientContext.Load( rootWeb, w => w.Title, w => w.Url, w => w.Lists, w => w.Lists.Include( list => list.RootFolder.Name, list => list.RootFolder.ServerRelativeUrl, list => list.ParentWeb.Url ), w => w.Id, w => w.Webs.Include( subWeb => subWeb.Title, subWeb => subWeb.Url, subWeb => subWeb.Lists, subWeb => subWeb.Lists.Include( list => list.RootFolder.Name, list => list.RootFolder.ServerRelativeUrl, list => list.ParentWeb.Url ), subWeb => subWeb.Id ) ); ClientContext.ExecuteQuery();
because of that I can't get entire structure.
How can I get entire structure if I don't have permissions for one subsite? Thanks