Overview
After installing SharePoint Server 2013 I created a site collection, when I tried to do a simple approval workflow I got 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."
I checked the database and there was no State Service db which means that we need to enable the “State Service” in the farm.
From Central Administration on the left click on Configuration Wizards then Launch Farm Configuration Wizard.
Click Start the Wizard.
When you start the wizard scroll down and check the State Service check box as in the following:
Click Next then wait for the wizard to finish. Check the SQL db after its done and you will find that State Service database is now added
Re-run the approval workflow now and it will work just fine.