System.BadImageFormatException ?

First off: THANK YOU for releasing this incredible project! I'm totally excited to put this to use. I think you guys have really done a superior job in answering this most complex problem in application development.

Secondly, I appear to be getting the following exception when trying to run the CTP samples:

An unhandled exception of type 'System.BadImageFormatException' occurred in WinAppSample.exe

Additional information: Could not load file or assembly 'System.Data.Entity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Funny thing is, the version of System.Data.Entity is v2.0.50727, not 2.0.0.0

I'm running this on 2003 Server 64-bit. I think that might be the culprit... not sure though. :)

Just wanted to throw this out there and see if there's anything obvious I'm missing...

Thanks, and keep up the amazing work!

Mike

[1004 byte] By [Mike-EEE] at [2008-2-6]
# 1

Both System.Data.CTP.dll and System.Data.Entity.dll are mixed-mode assemblies (have both native and managed code in them) so they're platform-specific. For this CTP we only shipped 32-bit versions of the binaries, so you either need to run it in a 32-bit OS or you have to make your application run inside WoW64. To force the app to run in WoW64 you can go to the project properties in VS, select the "build" tab, and set the "platform target" to x86.

Pablo Castro
ADO.NET Technical Lead
Microsoft Corporation

pablo-ms at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...

Visual Studio Orcas

Site Classified