"BadImageFormatException" is thrown while compiling or attempting to run my application on Windows 8 64 bit. I've scoured the Internet and many people have the same error message. However, none of the solutions address my problem or situation. I am using Visual Studio 2012 Express.
Error message
Error 38 Could not load file or assembly 'file:///C:/Projects/Windows Projects/Weld/Components/FileAttachments/FileAttachments/FileAttachments/bin/x86/Debug/FileAttaching.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I do have some C++ dlls and most dlls are in C#. Some of the dlls are compiled on 32 bit machines and I am using a 64 bit machine.