How we run a .NET 32-bit application in a 64-bit Windows server?

Posted by Geo on Stack Overflow See other posts from Stack Overflow or by Geo
Published on 2009-02-18T22:27:17Z Indexed on 2011/01/08 23:54 UTC
Read the original article Hit count: 212

Filed under:
|
|

We are installing a third party application in one of our 64-bit Windows servers. This application apparently was build with the compiler option set to choose the platform at run time. When we run the application it gives us an error:

System.BadImageFormatException: is not a valid Win32 application.

I have seen in MSDN forums that in order to fix this error I have to build the application set to 32-bit, and that way it will run fine on a 64-bit server. I check on other StackOverflow links Other Posts.

How to get around this situation? For everyone that wants to know more information:

  1. The application is running fine in a 32-bit test server.
  2. IIS version 6
  3. using SQL Server Express 2005
  4. On the Web Service Extension there are both Framework64\v2.0.50727\aspnet_isapi.dll
  5. and Framework\v2.0.50727\aspnet_isapi.dll

© Stack Overflow or respective owner

Related posts about .NET

Related posts about web-applications