>Infopath Form Services error due to Missing State Service

>

In SharePoint 2007, if you tried to run an InfoPath form on InfoPath form services before installing a Shared Service Provider you received an error saying that there was no session state available.

I have been setting up SharePoint 2010 manually to understand the process in more detail and had been looking out for some service to do with Session State. However, the State Service is not a service you can create through the Central Administration site. As this is the cause, I presumed that session state would be handled by another SharePoint managed service.

After setting up a web application and site collection, I tried to publish a page and received an error something like the following, "An error has occurred with the Form Service there is a misconfiguration of the Microsoft SharePoint State Service”.

So there is a state service! Unfortunately the state service can only be created via the Farm Configuration Wizard or  manually by using Powershell.

After some digging I found the following post on Technet.

Essentially the process to create the State Service is the following:-

  • Logon to SharePoint Farm
  • Run the SharePoint Powershell Management Console
  • Create the state service app by typing: $stateserviceApp = New-SPStateServiceApplication -Name "My State Service"
  • Associate a database with the state service by typing: New-SPStateServiceDatabase -Name "MyStateServiceDatabase" -ServiceApplication $stateserviceApp.
  • Associate a state service proxy to the state service by typing: New-SPStateServiceApplicationProxy -Name "My State Service Proxy" -ServiceApplication $stateserviceApp -DefaultProxyGroup.

This will create a State Service for your SharePoint farm.

For more information please see the following Technet Article

Thoughts? Comments about this post? Please leave them here..

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.