SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

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

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!


Posted 11-13-2007 8:22 AM by ChadClarke

Comments

Petu wrote re: List does not exist. AccessDenied.aspx. I finally figured it out...
on 04-23-2008 5:59 AM

You can also get this same error message when you change an user from a group to another and the user has the document checked out during this. Apparently the users "check out list" is dependant on the user group since the level of permissions does not matter.

ChadClarke wrote re: List does not exist. AccessDenied.aspx. I finally figured it out...
on 04-24-2008 10:22 AM

Thanks for the comment Petu!

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.