Re: Reference required to assembly System.Data
- From: "Atle Kaaven" <atlek@xxxxxxxxxxxx>
- Date: Thu, 1 Feb 2007 23:53:59 +0100
I tried with a new project. Same result. What is the version numbers of
yours System.Data and System.Data.SqlServerCe ?
Atle
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> skrev i melding
news:uZJ4c3iRHHA.3412@xxxxxxxxxxxxxxxxxxxxxxx
Atle,
They should work the very same way.
The next thing I'd suggest is creating a brand new project. Add a
reference to System.Data and System.Data.SqlServerCe and see if you can
get a tiny app to work.
--
Ginny Caughey
Device Application Development MVP
"Atle Kaaven" <atlek@xxxxxxxxxxxx> wrote in message
news:edeqVIiRHHA.3592@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the suggestions Ginny
I reinstalled the SP1 and and tryed removing and adding back the
System.Data reference, but no changes.
Can it be that SQL Mobile 3.0 and 3.1 are not compatible? I get this
error where I declare my variables in the program. This code worked in
SQL Mobile 3.0.
Public cmd As New System.Data.SqlServerCe.SqlCeCommand
Atle
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> skrev i
melding news:ec5TlThRHHA.4276@xxxxxxxxxxxxxxxxxxxxxxx
Have you tried removing and adding back your reference to System.Data?
You might also try a reinstall or repair of the VS2005sp1 tools for SSCE
since some people did have some issues with that installation. I can't
remember if there was any message after a successful installation or
not, but I believe that people with problems did get error messages
during the install.
--
Ginny Caughey
Device Application Development MVP
"Atle Kaaven" <atlek@xxxxxxxxxxxx> wrote in message
news:Osg%23CJhRHHA.2076@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
In hopes that someone can give med an idea of what is wrong.
After removing my old v3.0 System.Data.SqlServerCE.dll and replaced it
with the 3.1 version I get this error. The new 3.1 version shows
9.0.242.0.
But I already have a reference to System.Data.dll version 2.0.0.0.
I'm developing a WM5 CF program with VS2005 SP1
What reference is missing, or do I still have wrong versions of
something after spending days on trying to install this correctly?
Full Error message:
Reference required to assembly 'System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the base
class 'System.Data.Common.DbCommand'. Add one to your project.
I'm wondering a bit about the installation of SSCE31VSTools-ENU.exe
since it starts extracting, then gathering information then it just
closed down with no message. But maybe thats what it is supposed to do.
Atle
.
- Follow-Ups:
- Re: Reference required to assembly System.Data
- From: Ginny Caughey [MVP]
- Re: Reference required to assembly System.Data
- References:
- Reference required to assembly System.Data
- From: Atle Kaaven
- Re: Reference required to assembly System.Data
- From: Ginny Caughey [MVP]
- Re: Reference required to assembly System.Data
- From: Atle Kaaven
- Re: Reference required to assembly System.Data
- From: Ginny Caughey [MVP]
- Reference required to assembly System.Data
- Prev by Date: Re: New DB??
- Next by Date: Re: Reference required to assembly System.Data
- Previous by thread: Re: Reference required to assembly System.Data
- Next by thread: Re: Reference required to assembly System.Data
- Index(es):
Relevant Pages
|