.net 2.0 - SQL connection

Hi All,

I've created a smart device app. in .net 2.0 (beta 2). Also, created SQL server mobile database with 1 table and then I dropped table on the mobile designer window which created sqlceconnection1, sqlceadapter1, sqlcecommand1, sqlcecommand2, sqlcecommand3 and sqlcecommand4 objects ( that automatically adds reference Microsoft.SqlServerce.SqlClient.dll to my project ). When I try to compile the solution..it tells me "Error 1 Metadata file 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Microsoft.SqlServerCe.Client.dll' could not be opened -- 'Version 2.0 is not a compatible version."

Could any one please help?

Thanks.

[668 byte] By [latesh] at [2007-12-16]
# 1

This library is not for device. Please use System.Data.SqlServerCe.dll. I’m not sure why VS would add this reference. I also do not understand why it would think it’s incompatible unless it’s V1 project.

IlyaTumanov at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 2
I tried that too and somehow this stinkin' thing does not want to work...any ways, thanks for your help.
latesh at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 3
Are you sure you're on NETCF V2 project, not V1? What kind of device is your project for?
IlyaTumanov at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 4
I'm writing smartphone app. using .net v2.0 and project template Smartphone Magneto under C#.
latesh at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...
# 5

Was this project migrated from something? If so, please try creating a fresh NETCF project instead of using migration.

IlyaTumanov at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...