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 patent division taking cash from at least 5 Android vendors

Microsoft patent division taking cash from at least 5 Android vendors I love some of Microsoft products. However, the patent system is broken. It becomes barrier innovation and small companies. Google and Android is not small but it is success is largely due to the free availability of it to the masses. The masses ability to review, critique and contribute and then use. Just like other products, java, linux, etc.... I suspect the arguments will sound like those of the drug industry. We invested so much we must protect our investment. As we watch big Pharma die a slow death from protectionism and gaming the patent system. A company that wants to make money needs to add VALUE not put up white picket fences. I provide services to my employers. If I put up picket fences to protect my JOB, I would be fired as soon as possible. We need to fire this type of action. It is friction to innovation not lubricant.

China to ban online impersonation accounts, enforce real-name registration | Reuters

I can't comprehend this.  I grew up in a red state so most liberal ideas are hard for me to relate to but this stuff blows my mind. We are not perfect.  Our government spies on us, tortures prisoners and etc but when it comes to light scape-goats are found and government has to regroup and find other ways to meet their ends.  In other countries, you just have to take it and take it. Today, I remember how proud and thankful I was born in America. China to ban online impersonation accounts, enforce real-name registration | Reuters : 'via Blog this'