PC Review


Reply
Thread Tools Rate Thread

Cannot compile a solution in VS2010 which references Microsoft.SQLServer.ManagedDTS.dllunless target is changed to .NET 4.0

 
 
Nick Gilbert
Guest
Posts: n/a
 
      20th Apr 2010
Hi,
I have upgraded a Visual Studio 2008 solution to VS 2010, but leaving
the target Framework at 3.5. The application references
Microsoft.SQLServer.ManagedDTS.dll which ships with SQL Server 2008 (I
am using version 10.0.1600.22 of this DLL).

If I try to compile the application I get the following compiler warning
in the output window, followed by lots of errors as it cannot find the
namespaces referenced in the source code:

Warning 2 The primary reference "Microsoft.SQLServer.ManagedDTS,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91,
processorArchitecture=MSIL" could not be resolved because it has an
indirect dependency on the .NET Framework assembly "mscorlib,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
which has a higher version "2.0.3600.0" than the version "2.0.0.0" in
the current target framework.

....followed by various related compilation errors.

If the target framework is changed to 4.0, the application compiles and
works normally, however .NET 4.0 is not available in our hosting
environment and the application compiled and worked perfectly under .net
3.5 when compiled by VS 2008. Therefore it seems the error message
generated by the compiler is incorrect.

This problem has also been raised by others on the MS Connect site:
http://tinyurl.com/y4uzwoz

Any ideas how I can fix or workaround this problem?

Thanks
Nick
 
Reply With Quote
 
 
 
 
Andrew Morton
Guest
Posts: n/a
 
      21st Apr 2010
Nick Gilbert wrote:
> I have upgraded a Visual Studio 2008 solution to VS 2010, but leaving
> the target Framework at 3.5. The application references
> Microsoft.SQLServer.ManagedDTS.dll which ships with SQL Server 2008 (I
> am using version 10.0.1600.22 of this DLL).
>
> If I try to compile the application I get the following compiler
> warning in the output window, followed by lots of errors as it cannot
> find the namespaces referenced in the source code:
>
> Warning 2 The primary reference "Microsoft.SQLServer.ManagedDTS,
> Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91,
> ...


Is there any significance in the warning containing a different version
number for your dll than the one you're intending to use?

--
Andrew


 
Reply With Quote
 
Nick Gilbert
Guest
Posts: n/a
 
      21st Apr 2010
On 21/04/2010 09:31, Andrew Morton wrote:
> Nick Gilbert wrote:
>> I have upgraded a Visual Studio 2008 solution to VS 2010, but leaving
>> the target Framework at 3.5. The application references
>> Microsoft.SQLServer.ManagedDTS.dll which ships with SQL Server 2008 (I
>> am using version 10.0.1600.22 of this DLL).
>>
>> If I try to compile the application I get the following compiler
>> warning in the output window, followed by lots of errors as it cannot
>> find the namespaces referenced in the source code:
>>
>> Warning 2 The primary reference "Microsoft.SQLServer.ManagedDTS,
>> Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91,
>> ...

>
> Is there any significance in the warning containing a different version
> number for your dll than the one you're intending to use?
>


That comes up even if I remove the reference and re-add it. I'm not sure
why it's different to the version number I get if I look at the
properties of the file.

Nick
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot compile a solution in VS2010 which references Microsoft.SQLServer.ManagedDTS.dllunless target is changed to .NET 4.0 Nick Gilbert Microsoft Dot NET Framework 2 21st Apr 2010 09:48 AM
Target 3.5 has project's property pages / references for 2.0 AAaron123 Microsoft ASP .NET 2 23rd Jul 2009 06:14 PM
Strange Compile error using Access & ODBC SQLServer DJJ Microsoft Access Form Coding 5 20th Jun 2006 11:25 PM
How do I know my target platform at compile time? Rob Richardson Microsoft C# .NET 3 20th Oct 2004 10:20 PM
compile Error - references Mimi Microsoft Access 1 9th Mar 2004 06:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:00 AM.