Hello,
I have an app that has been developed and tested under .Net 2.0/VS 2005 and Windows XP (32-bit). Now we are trying to get it up to speed with Vista using VS 2008 and we are running into some issues when running in 64-bit platforms.
The app uses some 3rd party libraries for widgets and other stuff. Some of those libraries are available in 32-bit for now, so the solution we are looking for is getting to run Vista/64bit with the app targeted to 32-bits. When I target Any CPU, the app runs fine but some of the GUI parts that use our 3rd party library show messed up. If I target x86, those issues are fixed, but the app only runs on Vista/64bit if compiled for debug mode. If I compile the app for release mode I get the following error:
System.BadImageFormatException was unhandled
Message: Could not load file or assembly 'xxx.xxx, Version=xxx, Culture=neutral, PublicKeyToken=xxx' or one of its dependencies. An attempt was made to load a program with an incorrect format.
An app targeted for x86 is supposed to be able to run in Vista/64bit or not? Why am I able to run it in debug mode? Any ideas on what could I try to figure out this problem? The Exception is not very informative.
Thanks!