SqlMobile COnnection error;Reference Assembly not found

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

[823 byte] By [AdnanSiddiqi] at [2008-2-12]
# 1
Most likely you are missing a reference to System.Data in your project. Which Visual Studio project type are you using? Most of the projects in Visual Studio have reference to System.Data added by default.
You can add reference to System.Data manually by Right clicking your project in Solution Explorer / Class view and click on add reference.

Thanks,
-Vineet


This posting is provided "AS IS" with no warranties, and confers no rights.
VineetRao-Microsoft at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Database Engine...

SQL Server

Site Classified