Quote:Moderator edit: the best way fix the problem of running 32-bit web applications on 64-bit systems is to get
UltiDev Web Server Pro.
Hi,
We tested our web application with UltiDev Cassini Web Server in Windows XP and Vista 32 bit systems, they all work fine. But when we tested in Vista 64 bit machine, I got some errors.
Here is the background:
We use Visual Studio 2005 Professional and Sql mobile 3.0 database. I guess Sql mobile 3.0 dlls were built with x86 mode.
When we built our components with "AnyCPU", installation of UltiDev Cassini Web Server and our web application was working fine. This installation actually includes creation of metadata that created a Sql mobile 3.0 database. That means in this installation, Installer has called Sql mobile 3.0 dlls. They work just fine. But when we ran our application, we got "Internet Explorer cannot display the web page" error. This url address displays "http://localhost:7756/GoToApplication.aspx?AppID=990D7173-61BB-46ED-B497-773CE2147658". I checked UltiDev Cassini Web Server Explorer, it displays " is loading application information...". I checked Windows service the UltiDev Cassini Web Serverf or ASP.NET 2.0 is stopped. I started it manually, it worked, but when I ran our application, it stopped again. I tried several time, the error repeated again. I checked the even viewer, I got the error message "System.BadImageFormatException Message: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) StackTrace: at System.Data.SqlServerCe.NativeMethods.SafeRelease(IntPtr& ppUnknown) at System.Data.SqlServerCe.SqlCeCommand.ReleaseNativeInter"
After read a thread in this forum, I changed build platform target to "X86". I reinstalled our application in Vista 64bit machine. Installation was fine, no error. But when we ran our application, we got a different error this time. I checked Windows service the UltiDev Cassini Web Serverf or ASP.NET 2.0 is still running. The error message is "Could not load file or assembly 'our assembly' or one of its dependencies. An attempt was made to load a program with an incorrect format." I googled this error message, it says it usually caused by run ASP.NET 2.0 app in ASP.NET 1.1 framework in IIS.
I searched this forum, there was some similar issue reported, but no solution reported. Anybody has solutions now?
Really appreciated