Problem with SqlTypes.SqlBinary declaration in VS2005/CF2/WM5

C

chris-s

I'm working my way thru upgrading our codebase and have come across an
odd one!

I have a method that is returning a variable of type SqlBinary but
gives the following compilation error...

Error 3 The type 'System.Data.SqlTypes.SqlBinary' 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'

This is a psuedo-snippet of the code...

using System;
using System.Data;
using System.Data.SqlTypes;
using System.IO;

namespace TimeDrive
{
public class FluxCapacitor
{

public SqlBinary StarChartData(string filename)
{


}
}
}


I've tried declaring the return var as
'system.data.sqltypes.sqlbinary' and also removing the 'using
system.data.sqltypes' line, but neither resolve the error.

Chris
 
C

chris-s

Resolved it, I found a PROJECT reference to System.Data.Common, see I
new it would be simple ;)

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top