Hi Team,
i have updated product of sp2010 to sp2013, in sp2013 SPContext object is not loading..
i have configured below things
To make solution created for SharePoint Server 2010 working in SharePoint Server 2013 following changes are required:
Open the old solution file (created in VS2010) in VS2012 and save that as VS2012 solution format.
- Do the same for all project files and change .NET Framework version tov4.0 or v4.5.
- 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".
- Add below line in AssemblyInfo.cs (assembly's property) [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
- Finally, compile and deploy.
i have developed sample web part in sp2013 , in that web part i am able to get current user of SPcontext object( please find the attached screen shot). but in my original solution sp context object is getting null. please help..
nagabhagavan@gmail.com