If you have skipped the Farm Configuration Wizard when you installed SharePoint 2010 you might come across this error trying to publish a page or stating a workflow. “The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator”. The State Service is a shared service that is used by some Microsoft SharePoint Server 2010 components to store temporary data.
The State Service is automatically configured as part of the Basic SharePoint Server 2010 installation.
Advanced installation of SharePoint Server 2010 requires separate configuration of the State Service. You can configure the State Service after installation of SharePoint Server 2010 by using one of the following one of below way:
1. Configure the State Service using the Farm Configuration Wizard
If the State Service check box is unavailable, it has already been configured. After initial configuration, you can only configure the State Service by using Windows PowerShell.
On the Central Administration Web site, on the left navigation at the bottom, click Configuration Wizards.
SharePoint Central Administration àConfiguration Wizards àLaunch the Farm Configuration Wizard
On the first page of the Farm Configuration Wizard, click Start the Wizard.
On the services configuration page, in the Services section, select the State Service check box (and/or any other services you might be interested) and click Next.
If you set-up a top-level site already click on Skip button if not go ahead and create it now by clicking OK.
On the final page of the Farm Configuration Wizard, review your freshly installed services and click Finish.
2. Configure the State Service using Windows PowerShell
On the Start menu, click All Programs >> Microsoft SharePoint 2010 Products >> SharePoint 2010 Management Shell.
Run the following command
$serviceApp = New-SPStateServiceApplication -Name "State Service"
New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp
New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $serviceApp -DefaultProxyGroup
After set-up make sure you verify that your Web Application is associated with the new State Service Service Application by going to Central Administration >> Service Application Associations. Click on your Web Application and a window will pop-up with all associated services. State Services should be checked.