This morning I was trying out the InfoPath 2010 and suddenly I had an error saying “The form cannot be rendered. This may be due to a miscofiguration of the Microsoft SharePoint Server State Service. For more information…”
I immediately saw the opportunity for a post 😉
The window with the error message looks like this:
To solve the problem you need to create a new StateServiceApplication.
This can be done in the “SharePoint 2010 Management Shell” (if you try it in the normal PowerShell it will not work)
After executing these commands it is posible you need to do an iisreset.
After all this you can navigate again to the form and you will see the form rendered properly.