"System.BadImageFormatException was unhandled" is a nebulous error message.
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”.
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.
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…
Changing the Platform Target on the project properties from any cpu to x86 did the trick.
Thanks community for the help!
Comments