Partager via


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.

Comments

  • Anonymous
    April 05, 2009
    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
    July 04, 2012
    Thanks for sharing. Good job guys...going to get my hands dirty here and get a good look at what's new. I have been article share for everybody about topic   sharepoint2010template.com/.../Guide