DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2697977 - Last Review: April 16, 2012 - Revision: 3.0

SYMPTOMS

Consider the following scenario:

You try to start a SharePoint Designer 2010 Workflow which includes a custom task form. However, the workflow fails to start with 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. "

CAUSE

The State Service is not configured on the SharePoint Server 2010 Farm.

RESOLUTION

Configure the State Service as per Manage the State Service (SharePoint Server 2010) (http://technet.microsoft.com/en-us/library/ee704548.aspx) .

In most instances, the State Service is automatically configured when the farm configuration wizard is run. You must use Windows PowerShell if you want to reconfigure the State Service after initial configuration. 

To configure the State Service by using Windows PowerShell:
  1. On the Start menu, click All Programs.
  2. Click Microsoft SharePoint 2010 Products.
  3. Click SharePoint 2010 Management Shell.
  4. To create a service application, type the following command:
    $serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>"
    Where <StateServiceName> is the name for the service application.

    Note:
    You must have at least one service application for the State Service. In hosted deployments, each hosted partition can have its own service application, but it’s not necessary. The name of the service application must be unique. If you are creating an additional service application, you must replace the name text with a unique name.
  5. To create a State Service database and associate it with a service application, type the following command:
    New-SPStateServiceDatabase -Name "<StateServiceDatabase>" -ServiceApplication $serviceApp
    

    Where <StateServiceDatabase> is the name of the State Service database to be created and associated with the service application.

    Note:
    You must have at least one State Service database for each State Service service application. You can create additional databases in the same service application to increase capacity for forms and charts. Every database must have a unique name. 

    The previous command uses the default database instance on the farm and default database credentials. For more information about how to specify a different database server or database credentials, see New-SPStateServiceDatabase (http://technet.microsoft.com/en-us/library/ff607677.aspx) .
  6. To create a State Service application proxy, associate it with the service application, add it to the farm's default proxy group, and type the following command:
    New-SPStateServiceApplicationProxy -Name "<ApplicationProxyName>" -ServiceApplication $serviceApp -DefaultProxyGroup
    

    Where <ApplicationProxyName> is the name of the application proxy.

    Note:
    If you do not want to add the State Service application proxy to the default proxy group, do not specify the DefaultProxyGroup parameter.

MORE INFORMATION

For more information about the available State Service cmdlets, see State service and session state cmdlets (SharePoint Server 2010) (http://technet.microsoft.com/en-us/library/ee890113.aspx) .
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Microsoft SharePoint Server 2010
Keywords: 
KB2697977
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support