Re: Reference required to assembly System.Data



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









.



Relevant Pages

  • Re: Reference required to assembly System.Data
    ... If you use the .NET tab in the Add Reference dialog in Visual Studio, ... Can it be that SQL Mobile 3.0 and 3.1 are not compatible? ... SSCE since some people did have some issues with that installation. ... error messages during the install. ...
    (microsoft.public.sqlserver.ce)
  • Re: Reference required to assembly System.Data
    ... Can it be that SQL Mobile 3.0 and 3.1 are not compatible? ... some people did have some issues with that installation. ... believe that people with problems did get error messages during the ... But I already have a reference to System.Data.dll version 2.0.0.0. ...
    (microsoft.public.sqlserver.ce)
  • Re: Reference required to assembly System.Data
    ... Have you tried removing and adding back your reference to System.Data? ... some people did have some issues with that installation. ... that people with problems did get error messages during the install. ...
    (microsoft.public.sqlserver.ce)
  • Re: Reference required to assembly System.Data
    ... Device Application Development MVP ... System.Data reference, but no changes. ... since some people did have some issues with that installation. ... but I believe that people with problems did get error messages during the ...
    (microsoft.public.sqlserver.ce)
  • Re: suncomm, drm, intel
    ... If you have a message from Rob before today regarding the support of this software, you will need to check again, as Rob now has new ... Tiger "broke" the installation of the MediaMax software, and the devs are working to fix this. ... The installation does not make a reference to Tiger not being supported. ... The brochure on SunnComm's MediaMax specifically states "Mac Protection and Compatibility" stating that "For the first time, content can be played and protected on a Mac with the same experience enjoyed on a PC..." ...
    (comp.sys.mac.advocacy)