Hi all,
I'm getting the following error:
The type 'System.Data.Co mmon.DbConnecti on' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'.
and it's the same for
System.Data.Com mon.DbCommand
System.Data.Com mon.DbDataAdapt er
The code is using
using System.Data.Sql ServerCe;
with a reference path to
C:\Program Files\Microsoft SQL Server Compact Edition\v3.1\Sy stem.Data.SqlSe rverCe.dll
The various database commands look like this:
SqlCeConnection conn = new SqlCeConnection (stringConnecti on);
This program is running on a Windows CE5 handheld and it was all fine before it was decided to upgrade from SQL Server 2005 to SQL Server 2008. I got the same errors when using 2008 so I thought that going back to 2005 would resolve them, but it's still the same. I have removed all .Net Frameworks and even re-installed version 2 but still it's the same.
I have installed:
- SQL Server 2005 with tools (Management Studio)
- SQL Server 2005 Compact 3.1
- .Net Framework 2
Does anyone know what will make this work again?
I'm getting the following error:
The type 'System.Data.Co mmon.DbConnecti on' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'.
and it's the same for
System.Data.Com mon.DbCommand
System.Data.Com mon.DbDataAdapt er
The code is using
using System.Data.Sql ServerCe;
with a reference path to
C:\Program Files\Microsoft SQL Server Compact Edition\v3.1\Sy stem.Data.SqlSe rverCe.dll
The various database commands look like this:
SqlCeConnection conn = new SqlCeConnection (stringConnecti on);
This program is running on a Windows CE5 handheld and it was all fine before it was decided to upgrade from SQL Server 2005 to SQL Server 2008. I got the same errors when using 2008 so I thought that going back to 2005 would resolve them, but it's still the same. I have removed all .Net Frameworks and even re-installed version 2 but still it's the same.
I have installed:
- SQL Server 2005 with tools (Management Studio)
- SQL Server 2005 Compact 3.1
- .Net Framework 2
Does anyone know what will make this work again?
Comment