SharePoint 2010 Chart Web Part Issue with Service State

Error :
Microsoft SharePoint Server State Service could not find a state service application bound to the default state service application proxy "state service" associated with the current web application.

Or Unable to Render Chart Web part:

Solution :

It works for me

1. Remove "State Service" and also "State Service Proxy" along with associated data from Central Administration

2. Open SharePoint Power Shell run following commands:

  $serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>"
New-SPStateServiceDatabase -Name "<StateServiceDatabase>" -ServiceApplication $serviceApp
New-SPStateServiceApplicationProxy -Name "<ApplicationProxyName>" -ServiceApplication $serviceApp -DefaultProxyGroup

3. Enable Session State , run following command:
Enable-SPSessionStateService –DefaultProvision
4. Modify the web config of that specific web application
<pages enableSessionState="true"

Comments

Popular posts from this blog

How to remove app from SharePoint 2013/2016

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database