Recently when I tried to build and run an existing .Net application code I got the following error which generated from a component named “axShockwaveFlash1” which is an object used to embed flash content on to the application.
System.Runtime.InteropServices.COMException was unhandled
After some investigation I found that the reason for this was Flash Player’s incompatibility with 64 bit. Since my machine is running Windows 64 bit version it generates an error while trying to start Flash player. Good thing is Adobe is planning to release a Flash player which supports 64 bit soon.
For people who cannot wait until that (like me) can fix the problem in the following manner by running the application as an x86 application by changing the target platform in project properties.
Step 1 - Right click on your project and click on the properties.
Step 2 - Click on the Build tab and select x86 as the Platform target:.
Step 3 - Rebuild the application and run it, you will not get the error.