Skip to main content

"System.BadImageFormatException was unhandled" blues...

 

"System.BadImageFormatException was unhandled" is a nebulous error message.

image

Oh, by the way, unhandled shows up as a miss-spelling on my spell checker.

I really don't feel comfortable sharing how long I spent figuring this out but I am sharing the solution to possibly help someone else save some time.

This error did not mean anything to me.  At first blush, I suspected a version issue, installation issue with the sdk or a licensing issue.  What a joy!  Now the jump here may have something to do with past experience with this particular sdk.

After some time doing inspection and investigation and finding nothing I just happen click on the “Get General Help with this Exception”.

image

Now I click on these things occasionally but experience has shown me to be a waste of time more often than not.   I usually go to world’s help desk aka “The Google Machine” and sometimes Bing.  But when on occasion when I am thinking I just click around. 

image

Now the help content did not disappoint but this is not part of the help document but this is good content.

 

32-bit DLL….64-bit OS…..hmmm…something oddly familiar about this.  8 to 16 or more recently 16 to 32 same song different dance…or whatever the saying…

image

Changing the Platform Target on the project properties from any cpu to x86 did the trick.

Thanks community for the help!

Comments

Popular posts from this blog

Microsoft Internet Explorer 10 Design: 10 Essential Features - Enterprise Applications - News & Reviews - eWeek.com

Microsoft Internet Explorer 10 Design: 10 Essential Features - Enterprise Applications - News & Reviews - eWeek.com I think this is great IF..... If M$ can make their installs as unobtrusive as Chrome. Otherwise, it is a big pain. The IE9 forced me to reboot. OMG....for a browser install. I am not sure what is being done to require this but I suspect the value add for the reboot is just not there.

Garage Door opener replaced

Our garage door opener has become intermittent, it has to go. It turned into a bit of a research project. We ended up installing a belt drive unit. The bracket was kind of a pain. It is suppose to be much more quiet. I started wearing gloves more for household projects. I love these gloves. Foam Nitrile Coated gloves. Check them out. I got them here. http://www.hardworkinggloves.com/index.php?main_page=product_info&cPath=3_13&products_id=120 Later...

AppleInsider | After $8M victory, Personal Audio sues Apple again over same patent

AppleInsider | After $8M victory, Personal Audio sues Apple again over same patent Apple is victim of their own tactics. Reading through this patent US Patent No 6,199,076 reaffirms my belief most patents do not pass the obvious test. I see on the horizon many things possible in 10 years with trends technology today. I just need to the funds to invest in these obvious hail mary patents.