Cannot publish pages in SharePoint 2010
Posted by Christian Dam on January 15, 2010
If you have created your SharePoint 2010 farm manually without running the farm Configuration Wizard, you might encounter this error when you try 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 problem is stat the State service is not configured since the Farm Configuration Wizard has not been run. Configure it with PowerShell using these instructions from Technet:
- On the Taskbar, click Start, point to Administrative Tools, and then click Windows PowerShell Modules.
- In Windows PowerShell, create a service application by typing $serviceApp = New-SPStateServiceApplication -Name “State Service”
- Create a State Service database and associate it with a service application, by typing New-SPStateServiceDatabase -Name ”StateServiceDatabase” -ServiceApplication $serviceApp.
- Create a State Service Application Proxy and associate it with the service application by typing New-SPStateServiceApplicationProxy -Name ”State Service” -ServiceApplication $serviceApp -DefaultProxyGroup.
Once these instructions are run, you have a shiny new State Service Service Application and you should be able to publish pages again. Remember to verify that your web Application is associated with the State Service Service Application.
11 Responses to “Cannot publish pages in SharePoint 2010”
Sorry, the comment form is closed at this time.
Rob Lenihan said
Hello
When I try to run these script in Powershell, I get
At line:1 char:27
+ New-SPStateServiceDatabase <<<< -Name ”StateServiceDatabase” -ServiceApplication $serviceApp.
+ CategoryInfo : InvalidArgument: (:) [New-SPStateServiceDatabase], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Office.Server.Administration.NewStateServiceDatabaseC
mdlet
It doesn't work.
Any suggestions?
Manpreet said
Please run below mention command.
$serviceApp = New-SPStateServiceApplication -Name “State Service”
New-SPStateServiceDatabase -Name ”StateServiceDatabase” -ServiceApplication $serviceApp
New-SPStateServiceApplicationProxy -Name ”State Service” -ServiceApplication $serviceApp -DefaultProxyGroup
I know you copied period in second command along with command that’s why you were getting errors.
Allen Wang said
Nice article. Just want I needed.
Ikram said
I am trying to create new workflows and got this same error. Found this article and tried but got the same few problems that Rob was getting.
However, I logged on to the server as the Admin account for the Sharepoint server. Then opened the Powershell modules as Administrator. It was able to import and connect to the farm successfully.
Went through your steps and works great! Thank you so very much for this article.
aldocab said
GREAT, now It Works. Tnks!!
Ben said
Thanks for this post worked great
Ben
Sepi said
Thanks for the good explanation on this matter. I am going to put a link to your post on my site and borrow some of your words if you dont mind?
Many thanks for knowledge sharing
Sepi
zabaat said
Thank you!!!
naps2jaan said
This was really Helpful Thanks..
Joan said
Great post, it worked.
Thank you for the help.
Peter said
Thanks !!!!!!!!!!