When publishing SharePoint 2010 Portal you encounter the following error
“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. “
This issue is caused by lack of Session State Service which usually is a result of farm being configured manually.
To fix the issue power up your PowerShell on the SharePoint Server and run the following commands, these commands will create a State Service database and assign a service to allow portal changes publishing.
PS C:\Users\farmsvc> $serviceApp = New-SPStateServiceApplication -Name "State Service"
PS C:\Users\farmsvc> New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp
PS C:\Users\farmsvc> New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication
Hopefully this saves someone a headache.