I am using SharePoint 2010 Enterprise, InfoPath Designer 2010 and Visual Studio 2012.
When I create a list using the SharePoint UI, I can use the "Customize Form" button on the "Customize List" ribbon to customize the list form in InfoPath Designer and publishing the changes works just fine.
When I create the same list in Visual Studio and deploy it via a solution package, I can still use the "Customize Form" button to customize the list's form in InfoPath Designer, but publishing the changes won't work. The error message I receive reads:
The publish operation could not be completed. It cannot be determined if the form template was successfully published. Try publishing the form template again, or change the list settings to
Catastrophic failure
Googling the error message brought up some blog posts that suggest, that the error might be due to a timeout error: http://www.mysharepointadventures.com/2012/08/infopath-form-publish-soap/ But setting an expicit executionTimeout in web.config did not resolve the error.
I also verified, that all the relevant settings in SharePoint are set, as suggested here: http://tom-jaeschke.blogspot.de/2012/09/catastrophic-failure.html
Any ideas? Thanks in advance!