I have a browser-enabled InfoPath 2010 form with several data connections to various SharePoint web services (User profile service etc - All data connections are packaged as UDCX files and reside in a data connection library.)
The form works absolutely fine UNTIL I add any code at all. Even so much as adding an empty form loading event and ...