Feb 11
REPORT VIEWER SESSION STATE FOR ASP.NET
  1. In order to use the SharePoint 2010 Report Viewer Controls, the SharePoint Farm requires that the SharePoint Server ASP.NET Session State Service is enabled. The service is not on by default.

(Required for Report View Controls Web Parts)

 

To enable this you can open PowerShell and run the following to create the default provisioning settings

  • Run this command to add the plugin so you can run the provisioning
    • Add-PSSnapin "Microsoft.SharePoint.PowerShell"
  • After running the Add Snapin, run the following
    • Enable-SPSessionStateService -Defaultprovision

 

If you wish to give the database a name other than the SessionStateService_GUID you can use the following MSDN link to create a database with a defined name.

    Enable-SPSessionStateService -DatabaseName "Session State Service"

In addition you will need to modify the web.comfig file on any WebApp you require Session State enabled

  • <pages enableSessionState="true" 

http://blogs.msdn.com/b/markarend/archive/2010/05/27/using-session-state-in-sharepoint-2010.aspx

Comments

There are no comments for this post.

 ‭(Hidden)‬ Blog Tools