I have a web part that contains the below code:
SPPermissionInfo info = site.RootWeb.GetUserEffectivePermissionInfo(SPContext.Current.Web.CurrentUser.LoginName);
It compiles on a co-workers environment, runs on his environment, but when deployed to the production environment error throws a runtime error. Both environments are SP2.
Environment: SharePoint 2007 SP2, Windows Server 2008
The GetUserEffectivePermissionInfo()
method was initially not present but later added in an update. Kindly install latest updates for sharePoint.