SqlDbType error message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am converting a project from vs2003 to vs2005 and framework v1 to v2. I am
getting the following error message on this code:

using System;
using System.Data;
using System.Data.SqlServerCe;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;

daTm.SelectCommand.Parameters.Add("@ID", SqlDbType.Int, 4);

Error 1 The type 'System.Data.SqlDbType' exists in both 'c:\Program
Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll' and
'c:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL
Server\Mobile\v2.0\System.Data.Common.dll'

How can I specify the correct one?
Thanks for any help.
 
You should be able to add the reference and manually browse to the one
you want. Otherwise you can specify in the config file which one to choose.
 
You should remove reference to System.Data.Common.dll as its functionality
has been moved to System.Data.dll in NETCF V2.

Also, please remove reference to SQL CE 2.0 providers and replace them with
SQL Mobile providers.


--
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).
 
Back
Top