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