dotNET 2.0 application failing under Vista
-
I have an application that is developed using Visual Studio 2005 under Windows XP SP2. In fact there are several applications using a DLL developed under the same IDE etc. The applications load (i.e the executable runs I presume in compatibility mode) but it seems that the first call into the DLL fails the first few lines of the exception thrown are: ************** Exception Text ************** System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) at ScruffyDuck.Flightsim.Scenery.SceneryFile.SceneryFile..ctor(String filename, FileType fileType) at Bgl2Xml.Form1.goButton_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) I do not have Vista and have no idea where to start on this. The problem has been confirmed by two users. These applications work fine under XP. I have no unsafe code as far as I know everything is managed. Any pointers would be much appreciated.
Jon
-
I have an application that is developed using Visual Studio 2005 under Windows XP SP2. In fact there are several applications using a DLL developed under the same IDE etc. The applications load (i.e the executable runs I presume in compatibility mode) but it seems that the first call into the DLL fails the first few lines of the exception thrown are: ************** Exception Text ************** System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) at ScruffyDuck.Flightsim.Scenery.SceneryFile.SceneryFile..ctor(String filename, FileType fileType) at Bgl2Xml.Form1.goButton_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) I do not have Vista and have no idea where to start on this. The problem has been confirmed by two users. These applications work fine under XP. I have no unsafe code as far as I know everything is managed. Any pointers would be much appreciated.
Jon
Did some quick searching.. are these problems cropping up on 64-bit Vista? If so, try specifying in the IDE that your application should always be compiled to 32-bit. See here for more info: http://www.nabble.com/BadImageFormatException-in-vista-64-t3341669.html[^] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=665884&SiteID=1[^]
-
Did some quick searching.. are these problems cropping up on 64-bit Vista? If so, try specifying in the IDE that your application should always be compiled to 32-bit. See here for more info: http://www.nabble.com/BadImageFormatException-in-vista-64-t3341669.html[^] http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=665884&SiteID=1[^]
Thank you very much - that did the trick. One of my testers can now run the program on Vista 64bit
Jon