This question already has an answer here:
- Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException) 23 answers
I'm using Visual C# Studio 10.0 with .NET Framework 4.0 and I was trying to load in the SoundTouchSharp library and create an instance of the library (object) in my application. However, after I type in the path for the file, I get this error:
BadImageFormatException
was unhandled -- An attempt was made to load a program with an incorrect format. (Exception fromHRESULT
: 0x8007000B)
How should I fix that? I'm almost positive that I created the .dll using the VS terminal and it should be the same version as the .NET framework. I can also provide more code if needed.
Thanks!