Showing posts with label gac. Show all posts
Showing posts with label gac. Show all posts

Friday, June 19, 2015

Adding reference in SSIS package


Hello,
The following blog will help users to deploy referenced dll in SSIS package while deploying to Integration Services.

Environment:
  1. SQL Server 2008 
  2. Visual Studio 2008 (Business Intelligence Projects)


To add reference of any dll in SSIS package, you go to project properties and browse to dll to add as a reference. It should also be in your local machine GAC else it wont work.
SSIS project doesn’t have bin folder so it always look for assemblies from GAC.

Now to run on sql server (using Integration Services), the same dll must be added to GAC on SQL Server machine.


Note: For assembly to be added in GAC, it  must have strong name.

HTH.

Monday, June 9, 2014

Install Assembly in GAC

How to install assembly in GAC?

The very simple way would be to use command prompt. Sounds difficult but it's not.

To have Gacutil installed, either need some version of Windows SDK or
if you cannot install SDK, then copy following 3 files from the machine where Visual Studio or SDK is already installed. I copied them from  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools

The files are:
  • gacutil.exe
  • gacutil.exe.config
  • 1033\gacutlrc.dll     (can be placed in the same dir as gacutil.exe on the server)
Then go to cmd and get your directory set where gacutil.exe is placed.
Run following:

 gacutil.exe -I <dllfilename>     to install the DLLs in the GAC.


Assembly Locations:
For FW 2.0, its C:\Windows\assembly

For FW 4.0, its C:\Windows\Microsoft.NET\assembly\

In folder above, you can look in 32 or 64 or MSIL folder.