ssisgacclass-librarygacutilscript-component

Adding a .dll from GAC to SSIS script component doesn't work


I am trying to reference a custom class library (C#) in a script component of my SSIS package. The library has a strong name. I deployed the .dll to GAC via gacutil. I am administrator and I really tried everything else I could find on the www. If I try to reference from any local folder it does work fine. But referencing it from GAC does simply not work. In the following screenshot I simply went to my script component -> References -> Add Reference. Here I navigated to "C:\Windows\assembly":

enter image description here

My libraries can be found there but I am not able to add anything. Not even the files that were already there.

What am I doing wrong?

Btw I am using "Microsoft Visual Studio 2008"


Solution

  • The problem was that referencing .dll's from GAC can be a little tricky with VS 2008. This is how I solved it.

    I simply put my dll in a arbitrary local folder and refrenced it in my script component. I also installed the very same library in the gac via gacutil.exe

    Now I simply deleted the file from the arbitrary local folder mentioned above. What happened was that VS automatically tried to find this file in gac. So it was referenced automatically from gac.