Domanda

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
È stato utile?

Soluzione 4

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.

Altri suggerimenti

Try to add the reference from:

C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS

And set the Local Copy for the reference in VS to true, hope this helps.

As far as I know SQL CLR is not currently compatible with .NET 4.0, you should try switching to 3.5 and see is that helps.

Check for the version of the system by going to:

C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS

If they are different then click on Add reference and follow the link to add the same.

Also in web.config, under the assemblies tag remove the one with the older version.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top