You are here: Home » List does not exist. AccessDenied.aspx. I finally figured it out…

List does not exist. AccessDenied.aspx. I finally figured it out…

Posted by chadclarke
No Comments »

So this is an interesting issue.  The problem that I was having to cause this error to come up was using the SPSite.AllWebs[Guid] collection to get the web that I wanted.  Well, when the code is run under the impersonation of a user that doesn't have access to all of the webs, they run into the AccessDenied.aspx, List does not exist error.  They aren't able to access the allwebs collection that the administrator can.  So remember this, use the SPSite.OpenWeb(Guid) function instead!  :)   It will save you all kinds of trouble.  Safe journeys in the world of SharePoint!

Your email is never shared.
Required fields are marked *




Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>