April 19, 2011

System.BadImageFormatException

I got this exception, when trying to run the faircom ctreesqlmanager tool in x64 machine.

After spending some time, found a solution from the url, http://social.msdn.microsoft.com/forums/en-US/phoenix/thread/9a43e9a1-a744-4a1a-bb34-3604254c126b/

I used the below line (included in a bat file), to use a 32 bit dll in a 64 bit environment.

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

To revert back use the below line,

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

No comments:

Post a Comment