|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 12:17 AM
Points: 174,
Visits: 95
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, February 13, 2013 7:57 AM
Points: 2,697,
Visits: 89
|
|
Hi Dinesh, I will appreciate, if the steps has been given for adding to GAC. This will be helpful for all if one don't have or have little knowledge on GAC
Warm Regards,
Jignesh Mehta
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 12:17 AM
Points: 174,
Visits: 95
|
|
Hi, Jignesh,
Thanks for the comment. I should have added that part too.
Assembly can be added to the GAC by using .NET framework 2.0 Configuration. This is listed under Control Panel-> Administrative tools. Open it and expand .NET Framework 2.0 Configuration- expand My Computer. Select Assembly Cache. Click on the second link Add an assembly to the assembly cache link in right pane. Browse the assembly and add. Done!
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Yesterday @ 5:35 AM
Points: 3,
Visits: 20
|
|
It might have also been a good idea to mention that you can also put assemblies into C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies and that they have to be strongly named to appear in the list. It is possible to use private assemblies in code but to do that you have to use late binding and something along the lines of Activator.CreateInstanceFrom
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, January 24, 2012 7:46 AM
Points: 1,
Visits: 3
|
|
Hi I implemented this solution: I created a dll which centralized all the main functionalities, I placed in the GAC following the step mentioned in this article and now it's referenced by many script tasks. The problem I found with this approach, is that every time I updated the dll, I had to open each script task and refreshed (remove and then add) the reference to the dll. If I didn't do that I received this error message: Error: The script threw an exception: Could not load file or assembly '[dll-name], Version=1.1.0.0, Culture=neutral, PublicKeyToken=d683c8b35189db35' or one of its dependencies. The system cannot find the file specified.
Does anybody know a way to update the dll without refreshing each script task one by one?
Thanks in advance.
|
|
|
|