Re: SQL CE v3.5 error referencing
- From: "Carlos" <ch_sanin@xxxxxxxxx>
- Date: Fri, 15 Feb 2008 11:44:51 -0500
Ginny,
nope, the target was CF3.5, and the properties of the namespaces that
appear by default in the project point to the:
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\
directory. That is why I do not understand the warning.
Carlos.
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in message
news:11F8B0F5-F489-4E64-B559-064A38A3B0CC@xxxxxxxxxxxxxxxx
Carlos,
Are you intentionally targeting CF 2.0 instead of 3.5 for your project? If
I use the Smart Device template to generate a project, the default CF
version is 3.5 and this is the reference to System.Data:
C:\Program
Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.Data.dll
--
Ginny Caughey
Device Application Development MVP
www.wasteworks.com
Scalehouse and Billing Software for Waste Management
"Carlos" <ch_sanin@xxxxxxxxx> wrote in message
news:%23MsqNv%23bIHA.1376@xxxxxxxxxxxxxxxxxxxxxxx
Hi again Ginny,
hey, thank you for your prompt response! Silly me, I was thinking that
I pointed to the right version. But, I thought they were generic so I did
really
did not pay attention..
I created a bare bones new project referencing the right path, and this
time
I justy got a warning mentioning the same issue. i.e.:
Consider app.config remapping of assembly "System.Data, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [] to Version "3.5.0.0" [C:\Program
Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.Data.dll]
to solve conflict and get rid of warning.
Consider app.config remapping of assembly "System, Culture=neutral,
PublicKeyToken=969db8053d3322ac, Retargetable=Yes"
from Version "2.0.0.0" [] to Version "3.5.0.0" [C:\Program
Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.dll]
to solve conflict and get rid of warning.
According to the reference properties, those 2 references : System.dll,
and System.Data.dll are obtained from
those directories. Their runtime version is v2.0.50727, and the version
is 3.5.0.0. So I do not
know where is the confusion.
Thanks again!
Carlos.
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in
message news:FC2F3548-FD7D-44F4-B78F-B92A81BDEF0E@xxxxxxxxxxxxxxxx
Carlos,
It sounds like you have a reference to the desktop SQL Compact and not
the device one. This is the path on my machine:
C:\Program Files\Microsoft SQL Server Compact
Edition\v3.5\Devices\System.Data.SqlServerCe.dll. Note the Devices
folder instead of Desktop.
--
Ginny Caughey
Device Application Development MVP
www.wasteworks.com
Scalehouse and Billing Software for Waste Management
"Carlos" <ch_sanin@xxxxxxxxx> wrote in message
news:uIIcQB%23bIHA.5348@xxxxxxxxxxxxxxxxxxxxxxx
Hi Ginnny,
no, I am writing an app for a smart device using VS 2008..
I am able to add the data source as SQL server compact v3.5
targeting the .Net compact framework v3.5. I add the right
sqlserverce reference which resides under the v3.5 directory.
However for some reason it complains about the assembly
Any help would be greatly appreciated!
Carlos.
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in
message news:7610898C-42D6-45B8-9CA1-4DC5FE38B4B6@xxxxxxxxxxxxxxxx
Carlos,
You're writing a desktop app, right? Do you have a reference to
System.Data?
--
Ginny Caughey
Device Application Development MVP
www.wasteworks.com
Scalehouse and Billing Software for Waste Management
"Carlos" <chsanin@xxxxxxxxxxxxx> wrote in message
news:%23XYcIh3bIHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
Hi all, for this line of code,
public SqlCeConnection conn = null;
I get the following error when trying to connect to a SQL CE v3.5
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:\Program Files\Microsoft SQL Server Compact
Edition\v3.5\Desktop\System.Data.SqlServerCe.dll: (Related file)
Does someone knows what is it about? Tahnks,
Carlos.
.
- Follow-Ups:
- Re: SQL CE v3.5 error referencing
- From: Ginny Caughey [MVP]
- Re: SQL CE v3.5 error referencing
- References:
- SQL CE v3.5 error referencing
- From: Carlos
- Re: SQL CE v3.5 error referencing
- From: Ginny Caughey [MVP]
- Re: SQL CE v3.5 error referencing
- From: Carlos
- Re: SQL CE v3.5 error referencing
- From: Ginny Caughey [MVP]
- Re: SQL CE v3.5 error referencing
- From: Carlos
- Re: SQL CE v3.5 error referencing
- From: Ginny Caughey [MVP]
- SQL CE v3.5 error referencing
- Prev by Date: Re: SQL CE v3.5 error referencing
- Next by Date: Re: SQL CE v3.5 error referencing
- Previous by thread: Re: SQL CE v3.5 error referencing
- Next by thread: Re: SQL CE v3.5 error referencing
- Index(es):
Relevant Pages
|