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

SPContext is not loading after updation of sp 2010 to sp2013

$
0
0

Hi Team,

i have updated product of sp2010 to sp2013, in sp2013  SPContext object is not loading..

 i have configured below things

Source: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevpreview/thread/93bc1f0a-b84a-41df-9c13-2bdfa92a529f

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.

  1. Do the same for all project files and change .NET Framework version tov4.0 or v4.5.
  2. 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".
  3. Add below line in AssemblyInfo.cs (assembly's property) [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
  4. 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


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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