Sreejesh Kumar
Sreejesh Kumar

Reputation: 2499

How to add reference to an external DLL from within script task?

How can I add reference to an external assembly from within a script task and deploy the package to a server along with the newly added external assembly?

Upvotes: 0

Views: 2165

Answers (2)

Michael Entin
Michael Entin

Reputation: 7744

Assuming you are using SSIS 2008 (it was a bit different for SSIS 2005) - the referenced assembly needs to be installed into GAC (Global Assembly Cache) on target machine where you run the package.

Upvotes: 1

William Salzman
William Salzman

Reputation: 6446

If this is in reference to your other recent question, then the only proper way to get the correct version of a Word DLL on the server where you want to deploy to is to install the proper product onto the server. Most DLL's (especially from products like Microsoft Office) are not redistributable (meaning you are not legally allowed to copy them from machine to machine without the underlying product installed). If a DLL from Microsoft is redistributable, then there will be a document accompanying the DLL that tells which DLL's are allowed to be copied from machine to machine and what the correct process for doing so is.

If this is not in reference to that question, then can you provide more detail about what it is you are trying to do so that we can help you more.

Upvotes: 3

Related Questions