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.

Microsoft loses i4i appeal, faces Word injunction in three weeks

I just finished reading this article and it grinds on me. I cannot speak to the details of this patent but on the surface it looks to me like many software patents. They fail on the Non-Obvious test. Maybe it is because I understand software but what amazes me is far different from my wife who is in the medical field and even further from those I meet who are less educated. This does not even come close to impressing me!! I am not a M$ groupie as they have many unworthy patents too. The patent system is broke in this this area as well as others. This is not Dave over Goliath. It is Dave leveraging a broken system over Goliath. The same system Goliath leverages to maintain competitive advantages. Wrong is Wrong even when Dave does it. You can read it here... http://www.betanews.com/article/Microsoft-loses-i4i-appeal-faces-Word-injunction-in-three-weeks/1261523600

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.