Hi guys,
I've had InfoPath 2010 with VSTO 2008 installed, and had separately installed InfoPath 2013 (side by side with 2010) with VSNET 2012. While I can use each environment on the same machine, I could not debug InfoPath 2010 code with VSTO 2008. When I hit debug, I'd see this error.
InfoPath cannot open the selected form because of an error in the form's code.
InfoPath will fail to load this form because Microsoft .NET Framework 3.5 is not installed or is installed incorrectly
I've always thought this is impossible, and for a while did work via a separate VM where I had to install InfoPath 2010 and VSTO 2008.
Recently, a colleague asked me if I can get the InfoPath 2010 debugging/preview to work, so I decided to dig in deep and fired up Fusion Log Viewer (fuslogvw). This is a .NET Framework utility that logs all the failed assembly loading to a folder, so I can see what InfoPath was trying to do when I run debug.
It turns out... this problem is incredibly easy to fix, and I've documented the steps (depending on your setup, between 1 to 3 steps) to get both debugging to work side-by-side, even at the same time.
http://johnliu.net/blog/2013/3/11/making-infopath-2010-previewdebug-work-again.html
I even have a pic to prove it.
Anyway, warm greetings to Patrick from Australia. Hope to see you guys soon again.