SqlMobile COnnection error

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
 
G

Ginny Caughey [MVP]

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
 
A

Adynan

Well,offcourse I added the required assemblies` References in the
project but its still keep giving the error

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top