[SharePoint 2010 – Developpement] SPRunWithElevatedPriviledge still getting access denied

  1. Check that you ran the code inside sprunWithElevated
  2. Check that you re instantiate a spsite after using SPContext, otherwise the site object will be run with normal priviledge
  3. If you are using SPLimitWebPartManager (lien vers dispose objects), place it in the spRunWithElevated priviledge too, because it instantiate an instance of SPWeb !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: