in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

This Blog

Syndication

ChadClarkesMOSSBlog

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!

Comments

 

Petu said:

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.

April 23, 2008 5:59 AM
 

ChadClarke said:

Thanks for the comment Petu!

April 24, 2008 10:22 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts