I created an InfoPath 2010 form and published it to SharePoint Server 2010. I published it to open in the browser not in the InfoPath Filler, and it works fine.
When I attach a code project to it (even I don't write any code), it opens with the InfoPath Filler not the browser.
Any ideas?