Running .NET applications in 32-bit mode on 64-bit Windows
The normal behavior for .NET 2.0 applications compiled with the default 'Any CPU' platform is to run as 32-bit on x86 (32-bit) Windows and as 64-bit on x64 (64-bit) Windows.
Rather than have to recompile the app or even worse, run a 32-bit Virtual Machine, there is an easy way to force .NET to run an app in 32-bit mode using the 'CorFlags.exe' tool.
Depending on your system this may be installed in different places.
*
C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\x64\CorFlags.exe
*
C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\CorFlags.exe
Running this from the command line with the filename (full path) of the app you want to change and the switch /32BIT+ to turn on 32-bit mode, e.g.:
Code:
CorFlags.exe TheApp.exe /32BIT+
You can re-enable 64-bit operation for the app by turning off the 32-bit switch with the parameter /32BIT-, e.g.:
Code:
CorFlags.exe TheApp.exe /32BIT-
Original Blog Post
This worked for me on Vista64
and I hope it helps anyone else out there.