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
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