SharePoint Notes

Bleeding on the cutting edge …

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:

  1. On the Taskbar, click Start, point to Administrative Tools, and then click Windows PowerShell Modules.
  2. In Windows PowerShell, create a service application by typing $serviceApp = New-SPStateServiceApplication -Name “State Service”
  3. Create a State Service database and associate it with a service application, by typing New-SPStateServiceDatabase -Name “StateServiceDatabase” -ServiceApplication $serviceApp.
  4. 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.

 
About these ads

11 Responses to “Cannot publish pages in SharePoint 2010”

  1. 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.

  2. Allen Wang said

    Nice article. Just want I needed.

  3. 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.

  4. aldocab said

    GREAT, now It Works. Tnks!!

  5. Ben said

    Thanks for this post worked great

    Ben

  6. 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

  7. zabaat said

    Thank you!!!

  8. naps2jaan said

    This was really Helpful Thanks..

  9. Joan said

    Great post, it worked.
    Thank you for the help.

  10. Peter said

    Thanks !!!!!!!!!!

Sorry, the comment form is closed at this time.

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: