Add reference to script task in ssis

0 votes
asked Jan 28, 2010 by chris-hayes

The way I understand it, SSIS script tasks can't use a reference unless it's in the GAC.

With this assumption:

  • I've tried downloading the .net 2.0 sdk x64 (developing on 64 bit machine) that should have gacutil, still not there.
  • I've tried installing the dll using a console app using the System.EnterpriseServices.Internal.Publish.GacInstall method. If it has installed it, I have no idea where becaues it's not in the available references in VS.

I can't copy it to assemblies because 'adminstrator rights' fails.

Any suggestions?

2 Answers

0 votes
answered Jan 28, 2010 by chris-hayes

Nothing is straight forward.

to use 'gacutil' in the .net 2.0 sdk (located here) you have to open the sdk command prompt AND 'as administrator'

alt text

alt text

0 votes
answered Sep 15, 2017 by egon-allison

Based on this link I Found GacUtils in the following folder: "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools"

I could then open command prompt (in adminisrator mode) and navigate to the folder containing gacutils:

cd C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools

and then run my command to install using gacutils:

gacutil -I "C:\myDll.dll"

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter