Hi,
We were getting the following error that “list doesn’t exist in the site” because the user was not having read permission on that list.
The code we were using was
SPList myList= spWeb.Lists[“mylist”];
A better approach would be
SPList myList = spWeb.Lists.TryGetList(“myList”);
If(myList != null )
// …
Bye ..
Filed under: SharePoint, SharePoint 2010, SharePoint 2013 Tagged: SharePoint, SharePoint 2010, SharePoint 2013

Like
Report
*This post is locked for comments