Is it possible to instead of the FormCode to inherit from Microsoft.Office.InfoPath.XmlFormHostItem, to inherit from a custom dll in which the custom dll inherits Microsoft.Office.InfoPath.XmlFormHostItem? When I try this it works on my local machine but when I try to publish to sharepoint I get the following error: There is an error in the InternalStartup method of form code.
Thanks