Hello,
I created a really simple application that reads data from SDF database. The connection string is the following:
I developed this application on Windows 7 x86 and trying to run it on Windows XP.
-The prerequisites for this application are: Netframework 2.0 and SQL Server Compact 3.5.
Both are installed on Windows XP.
- The targeted CPU is set to x86.
- Used references are: System, System.Data, System.Data.SQLServerCe, System.Drawing,System.Windows.Forms and System.Xml. Copy Local is set to TRUE.
- Included application files are: ApplicationName.exe (Include Auto), ApplicationName.config (Include Auto), Database1.sdf (DataFile Auto), System.Data.SQLServerCe.dll (Include Auto).
If I use the Publish Wizard and install my application on Windows 7 it works fine. The same installation doesn't work on Windows XP. The error message isn't very helpful as it only states: ApplicationName has encountered a problem and needs to close...
Is there something I am missing here?
Thank you!
I created a really simple application that reads data from SDF database. The connection string is the following:
vb.net Code:
Private con As System.Data.SqlServerCe.SqlCeConnection = New SqlCeConnection("Data Source=|DataDirectory|\Database1.sdf")
I developed this application on Windows 7 x86 and trying to run it on Windows XP.
-The prerequisites for this application are: Netframework 2.0 and SQL Server Compact 3.5.
Both are installed on Windows XP.
- The targeted CPU is set to x86.
- Used references are: System, System.Data, System.Data.SQLServerCe, System.Drawing,System.Windows.Forms and System.Xml. Copy Local is set to TRUE.
- Included application files are: ApplicationName.exe (Include Auto), ApplicationName.config (Include Auto), Database1.sdf (DataFile Auto), System.Data.SQLServerCe.dll (Include Auto).
If I use the Publish Wizard and install my application on Windows 7 it works fine. The same installation doesn't work on Windows XP. The error message isn't very helpful as it only states: ApplicationName has encountered a problem and needs to close...
Is there something I am missing here?
Thank you!