Wednesday, June 29, 2011

Configure State Service in Sharepoint 2010

When you get error like  Form not rendered due to misconfiguration of State Service
By using PowerShel cmdlets you are able to start the state service on for your web application.
$stateName = “State Service”
$stateDBName = “StateServiceDB”
$stateDB = New-SPStateServiceDatabase -Name $stateDBName
$state = New-SPStateServiceApplication -Name $stateName -Database $stateDB

New-SPStateServiceApplicationProxy -Name “$stateName Proxy” -ServiceApplication $state –DefaultProxyGroup
If you already have state service configured check that
State Service and State service proxy both should have started.

If State Service and State service proxy both are not started.
Do below steps -
Goto Application Management->Manage Service application

Select State Service and delete it as shown above.
Then again run command in powershell with administrative permission.
$stateName = “State Service”
$stateDBName = “StateServiceDB”
$stateDB = New-SPStateServiceDatabase -Name $stateDBName
$state = New-SPStateServiceApplication -Name $stateName -Database $stateDB

New-SPStateServiceApplicationProxy -Name “$stateName Proxy” -ServiceApplication $state –DefaultProxyGroup
Now check in Application Management->Manage Service application
State Service and State service proxy both should have started.

No comments:

Post a Comment