Pages

IMG

[SharePoint 2010 - Developpement] SPRunWithElevatedPriviledge still getting access denied

jeudi 1 mars 2012

  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 !

Aucun commentaire:

 

Blogroll

Jeff ANGAMA, is Office 365 / SharePoint Consultant. Started on MOSS2007 - More Infos Here -

RSE

Rechercher dans ce blog

Where Users are from ?