Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SPContext.Current.Web.CurrentUser.IsSiteAdmin getting null in SP2013

$
0
0

Currently my product has been developed in sp 2010, now my manager was asked test the my product in SP2013. i have started to migrating to SP2013.

I have configured below things for migrating.

  1. Open the old solution file (created in VS2010) in VS2012 and save that as VS2012 solution format.
  2. Do the same for all project files and change .NET Framework version tov4.0 or v4.5.
  3. Delete existing reference of Microsoft.SharePoint.dll and add newer one by going to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI".
  4. Add below line in AssemblyInfo.cs (assembly's property) [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
  5. Finally, compile and deploy.

 I am using windows server R2,Service pack 1,SP2013 and sql server 2012.

after configuring the all things when i access the site its giving "SPContext.Current.Web.CurrentUser.IsSiteAdmin" object is getting null... please help me on this......



nagabhagavan@gmail.com


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>