InfoPath render problem with the Server State Service on SharePoint 2010

I tried to transfer a InfoPath form from one SharePoint to another. After it was done i wanted to open the form and this is what I got: 
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. Normally this should not happen, because the Server State Service will be installed in the SharePoint wizard automaticly, but somehow it does not. In this case there are some easy PowerShell commands to solve the problem.
  1. Connect to the server and open 'Windows PowerShell Modules" (recommended as administrator)
  2. Create a service application by typing the following line: $serviceApp = New-SPStateServiceApplication -Name "State Service"
  3. Create a database for this service with the following line: New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp
  4. Create a new proxy for them with the following line: New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $serviceApp -DefaultProxyGroup
And that is all. Now you can go into the Central Administration ('Application Management' → 'Manage service applications') and there is your service and proxy.


Comments

Popular posts from this blog

How to support multiple languages in WPF