Moved to windows 7 a few months ago and today when debugging an app originally coded in Visual Studio 2003 ported to VS 2005 I got this bizarre error
“An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”
After a few hours spent searching.. the apparent solution is to set your build setting from “Any CPU” to “x86″
Thanks Benjamin from
http://www.arenawars.net/Blog/post/2006/08/18/Windows-XP-x64-Experiences.aspx
Incoming search terms:
- An attempt was made to load a program with an incorrect format (Exception from HRESULT: 0x8007000B)
- an attempt was made to load a program with an incorrect format
- an attempt was made to load a program with an incorrect format exception from hresult
- hresult: 0x8007000b
- an attempt was made to load a program with an incorrect format visual studio 2005
- an attempt was made to load a program with an incorrect format vb net 2005 windows 7
- exception 08007000b
- exception from hresult 0x8007000b
- ESET an attempt was made to load a program with an incorrect format
- exception from hresult: 0x8007000b

