How to force .NET application to run in 32bit mode
I am trying to run my .NET 3.5 WinForms application on a Win7 x64. The application uses NHibernate and the System.Data.OracleClient to access an Oracle database. The Oracle client is 32bit. When starting up the app I get the following error message Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. In response to that, I targetted my build to the x86 platform: To my surprise, the very same error message appeared when trying to execute that new build on the Win7 platform.