Fix for “BadImageFormatException was unhandled” on x64 platforms

In case anyone else runs into this, I found a solution on the ADO.NET forum:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=665884&SiteID=1

You need to set Properties > Build > Platform target to “x86”. This will force it to run in WoW64, so the 32-bit mixed model Phoenix assemblies will load.

Ravi

Thanks for that link Ravi.  That is correct.  In the future we should change the solutions so that they come out the box as 32bit only.Another thing you can do is set your system so that it uses the 32bit CLR by-default.  You can do this by calling:C:WINDOWSMicrosoft.NETFramework64v2.0.50727Ldr64.exe setwowIf you’re doing this from a Vista box, make sure you run this from an Administrator command prompt.Thanks,/

Thanks for that link Ravi.  That is correct.  In the future we should change the solutions so that they come out the box as 32bit only.Another thing you can do is set your system so that it uses the 32bit CLR by-default.  You can do this by calling:C:WINDOWSMicrosoft.NETFramework64v2.0.50727Ldr64.exe setwowIf you’re doing this from a Vista box, make sure you run this from an Administrator command prompt.Thanks,

This link no longer works.  Can you please explain to me exactly how to make this fix so I can make Backpack work on my Vista64 laptop?