HomeDevelopment (Old) SPRunWithElevatedPriviledge still getting access denied

[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 !
- Advertisement -

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

CONNECT FOR MORE CONTENT

DO NOT MISS THOSE ARTICLES

Recent Comments