Welcome to MSDN Blogs Sign in | Join | Help

What to do when your 32-bit .Net Framework 2.0 app won't run on x64

I just ran into this problem trying to run Log Parser Lizard (FX 2.0 app using 32bit dlls) on my x64 machine. It kept throwing BadImageFormatExceptions and crashing. A little research identified the problem, the app is marked to run on any CPU but it uses 32bit dlls.

Simple enough to fix if I can just figure out how to force it to run as a 32bit app. I found the answer here. In a nutshell you can use the CoreFlags.exe utility to force the app to run as a 32-bit application.

Published Friday, April 03, 2009 2:48 PM by steveshe

Comments

# re: What to do when your 32-bit .Net Framework 2.0 app won't run on x64

Monday, April 06, 2009 4:16 AM by Philip Coupar

If I remember correctly CoreFlags.exe will not work on signed assemblies.  I came across this issue when running Robotics Studio on 64bit Vista.

I have tracked down the thread where this issues was discussed.  The general approach was to create a small wrapper application compiled to target 32bit only, and this forced the child process to run 32bit as well.  A good practice would certainly to be for those applications which use 32bit dlls to be compiled as 32 bit only applications.

http://social.msdn.microsoft.com/forums/en-US/roboticssimulation/thread/a06c66a7-c80e-483d-9cf3-c5a406ee6676/

Anonymous comments are disabled
 
Page view tracker