32-bit compiled trying to run on x64?
We have a 32-bit .NET application that works fine on standard Windows XP 32-bit. Recently purchased a x64 Dual XEON Intel system. Installed Windows XP x64 and all the updates including 64-bit .NET 2.0 framework. The application splash screen comes up and then immediately crashes. Before I look deeper, does the 64-bit version of .NET 2.0 run 32.bit .NET 2.0 applications?
Thanks.
JR
[405 byte] By [
jriker1] at [2007-12-20]
JR:
Can you give a little more detail about why your application is failing?
Ken is correct that .Net 2.0 X64 will run MSIL ("agnostic") assemblies. However there are a few caveots. If you application P/Invokes into any native code, your application will fail with a BadImageFormatException. This is expected since we cannot load the native 32bit DLL in the 64bit process.
There are a handful of other caveats, however, in general agnostic assemblies should be portable.
Let me know if you need some assistance drilling into this failure.
Jeff