Hey everyone. I'm hoping you can help me. Currently I am developing a media player using MCI and C#. The project has been worked on on XP 32 bit, Vista 32 bit and Visa 64 bit. It works fine on the 32 bit systems, however when I try to load the media file on the 64 bit computer I get an unhandled exception. It was:
An unhandled exception of type 'System.BadImageFormatException' occurred
Additional information: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Please help me fix this problems. Its being developed using VS 2008. Thank you.
'System.BadImageFormatException' occurred
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 1, 2009, 2:57 PM EDT
x86
this will build it to work with dlls compatibility mode to win32 even on 64bit computers.
it should solve your problem...
hope this helps
Bryan108 reputationPosted Sep 1, 2009, 4:33 PM EDT
Shankar G31 reputationPosted May 14, 2012, 12:30 AM EDT
I did all you said but still i have the problem. the problem is System.BadImageFormatException.
i have attached the error details as a image pls reply me as soon as possible.
i'm using .net 3.5(MS Visual Studio 2010)
Thanks in advance..
regards,
Shankar G