SharePoint Access Denied RunWithElevatedPermissions and Getting a web

Published by on
Tags:

If you have something like the following in you code:

	 SPSecurity.RunWithElevatedPermissions(()=>{
	   SPSite site = new Site(siteId, user.UserToken);
  	   SPWeb web = site.AllWebs[webId];
	 });

You may receive an access denied message anyway. Make sure you use

site.OpenWeb(webId)
.

 

All blogs tagged with ' sharepoint'

Projects

Have you read?

Safari 4 Cookie Problem



Blogs by date