SqlMobile COnnection error

  • Thread starter Thread starter Adynan
  • Start date Start date
A

Adynan

Hello

I am getting following error:

Error 1 The type 'System.Data.Common.DbConnection' 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=b77a5c561934e089'. C:\Documents and Settings\Adnan\My
Documents\Visual Studio 2005\Projects\Mobile5\Mobile5\Form1.cs 20 4
Mobile5


the line which caused problem is

System.Data.SqlServerCe.SqlCeConnection conn = null;

following are being used as reference


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;
using System.Data.SqlServerCe;
using System.Data.SqlClient;

PLease guide me
 
The using statement just allows you to avoid having to fully qualify your
class names. Adding references is different. In the Solution Explorer, right
click on the project and select Add Reference from the menu.

Ginny Caughey
..NET Compact Framework MVP
 
Well,offcourse I added the required assemblies` References in the
project but its still keep giving the error

Thanks
 
Back
Top