Run 32 bit .NET applications on 64 bit machines

If you have a 64 bit machine and want to run a .NET application that only works with the 32 bit CLR you would have to make changes to the .NET framework on your machine

Set the .NET framework to load the CLR in WOW mode through this command

Open up command prompt and type this command

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe SetWow

Now you should be able to run apps that use only the .NET 32 bit CLR.

To revert back to the default 64 bit framework run

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe Set64

Advertisement

6 Responses to Run 32 bit .NET applications on 64 bit machines

  1. Richard says:

    Alternatively, compile the executable for x86 instead of any CPU.

    If you can’t recompile, the CorFlags utility will modify the executable for you:

    “c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\CorFlags.exe” MyApplication.exe /32bit+

  2. kunjan says:

    Thanx!!
    It really helped me a lot!!!!

  3. Pingback: Run 32 bit .NET applications on 64 bit machines « Ocpmunir's Blog

  4. Pingback: juanmo

  5. raymond says:

    Would these commands work with a .NET dll or .NET COM dll. I am trying to invoke a .NET COM dll and it seems to be defaulting to the 64 bit framework when it was compiled to be x86.

  6. Sai Shankar says:

    Raymond,
    The application that I was trying to run had .NET dlls and this worked. I am not sure if this works with the .NET COM Dlls

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.