SharePoint Server State Service

After adding the SharePoint 2010 Chart Web Part to a page I received an error that the Server State Service had not been configured.  Apparently this service is not installed unless you do the simple SharePoint install or use the service setup wizard (which you should never use).  This service application is also used for InfoPath forms services and some of the Visio services which are not set up to use Silverlight.

After reviewing the Central Administration console I soon realized this service application cannot be created in the UI so I lookup up the article to use PowerShell, here it is:

To create the service open a SharePoint PowerShell command windows from Start -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell
Here are the three basic commands you will need to create the service application and associated database.

$serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>"

New-SPStateServiceDatabase -Name "<StateServiceDatabase>" -ServiceApplication $serviceApp

New-SPStateServiceApplicationProxy -Name "<ApplicationProxyName>" -ServiceApplication $serviceApp -DefaultProxyGroup

Also here is a screenshot of the output I received:

After the service was up and running the Chart Web Part started working great.


Popular posts from this blog

Add User As Local Administrator On Domain Controller

Calling Dataverse Web API in PowerShell using Client Credentials

Windows Server 2008R2 VMs Shut Down After 1 to 2 Hours