Blog

Visual Studio 2005 64-bit error (incorrect format - HRESULT: 0x8007000B))

I was working through some SQL Compact Edition tutorials and kept getting errors trying to run the most basic of applications.  "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)".  This was running on my 64-bit Vista laptop.  My regular 32-bit desktop with Windows XP worked fine.  So was it Vista or 64-bit.  This time, it was 64-bit.  The solution was to go into the project properties and set the "Platform Target" to "x86" instead of "Any CPU".  Setting it to x64 gave the same error as well so I'm not sure what the fix is to get it to run true 64-bit apps without the error. The problem may be SQL 2005 CE but I don't think so.  But for now, changing the "Platform Target" got me past my problem.

Return TopTrackbackPrintPermalink

Comments

Got something to say? Join the discussion »

leave a reply

 [Quick Submit with Ctrl+Enter]

Remember my details
Notify me of followup comments via e-mail