Search code examples
c#sqldllversionfxcop

Warning: Can't find dll


I have a client program written in C# where one of the projects in the solution handles a case which the machine has SQL 2005 installed.

I have added the relevant DLLs, but I get that warning:

CA0060 : The indirectly-referenced assembly 'Microsoft.SqlServer.ManagedDTS, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: d:\Any CPU\Bin\Debug\MyProgram.SSIS2005.dll.

According to properties of Microsoft.SqlServer.ManagedDTS it's version is 9.0.3042.0, I don't understand why it requires the version 9.0.242.0. I don't know if it related, but the version of Microsoft.SQLServer.DTSRuntimeWrap is 9.0.242.0.

What have I tried?

  • Deleting and adding the reference
  • Changing manually the version required in the csproj file
  • I thought about getting all dlls with the same version, but didn't find such a source at the web.

Any Ideas? Thanks, KM

EDIT: Another details,

  • My target framework is .Net 4.0
  • I have set the 'useLegacyV2RuntimeActivationPolicy’ to true

Solution

  • As @Mightymuke mentioned in the comments, Fuslogvw.exe shows which DLLs were loaded. One of my projects had a reference to DLL that referenced an old version of Microsoft.SqlServer.ManagedDTS.