You're trying to use SQL CE 2.0 with NETCF V2 project which is not
supported.
Please remove all references to SQL CE 2.0 and replace them with references
to SQL Mobile (AKA SQL CE 3.0).
If you have existing SQL CE 2.0 databases, they would need to be converted
to SQL Mobile format.
If you interested why this is happening, several classes like
System.Data.Common.DbConnection were located in System.Data.Common.dll for
NETCF V1.
This DLL was removed in NETCF V2 and functionality moved to System.Data.dll
so it would match desktop. Runtime knows it needs to redirect from
System.Data.Common.dll to System.Data.dll.
However, compiler is unaware of that, so if you have both V2 System.Data.dll
and V1 System.Data.Common.dll references, you have duplicate classes and can't
compile.
If you remove System.Data.Common.dll reference, SQL CE 2.0 provider can't
find it and you can't compile again. Thus it's not supported.
--
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).