views:

148

answers:

1

I have an ASP.NET app that was compiled on a 32-bit machine. There are many different assemblies that are referenced. I opened the web site's main dll with ILDASM and looked at the .corflags. It stated it was ILONLY. However, when I run the web site locally on the 64-bit machine (Windows XP Pro 64-bit), I get "is not a valid Win32 applciation". Shouldn't the app run as 64-bit since it was compiled with "AnyCPU"? How can I get this to work? I am using .NET 3.5. I want the app to run as 64-bit, not 32-bit.

+1  A: 

Probably some of your dlls are not compiled as AnyCPU.

Use the Process Monitor from sysinternals to locate it and fix it / change it.

With the Process monitor you can see where its fail to load a dll.

Also you can use the dependencyWalker after you locate some of your problematic dll, to see more info on the dll that are not loaded.

Hope this help.

Aristos