How do I set up Infopath Forms 2007 for Code Behind in VS2008 and WSP Builder? RRS feed

  • Question

  • Hi,

    I am using WSPBuilder, InfoPath 2007 and VS2008

    Could someone tell me how to set up Code Behind for InfoPath 2007 Form in Workflow. I have made Fully Trusted, but form message keeps coming up as:

    The form has been closed.

    Works fine in Infopath Preview.




    Friday, February 18, 2011 4:12 PM


  • Hi, John


    If I understand correctly, you have implemented VSTA code in your customized InfoPath Form, after deployment(with Fully Trusted), you still got “The form has been closed” error.

    If your InfoPath Form has server side code logic, I would recommend check following post first:

    3 Ways to deploy InfoPath form templates to SharePoint: http://www.bizsupportonline.net/blog/2009/06/3-ways-deploy-infopath-form-templates-sharepoint/

    Please make sure you used the 3<sup>rd </sup>(administrator-approved form template) deploy approach in above article.

    Besides, for further trouble shooting, you could also collect error information in LOG files under “%COMMONPROGRAMFILES%\Microsoft Shared\Web server extensions\12\LOGS” directory.


    Best Regards,


    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact tngfb@microsoft.com

    • Marked as answer by John Guilbert Tuesday, February 22, 2011 11:29 PM
    Monday, February 21, 2011 9:17 AM