Using custom assembly & gacutil & sn
Hello experts,
I need some help please.
Yesterday I get the answer that I had to use an assembly if I would like to use a function as global. Right now Im very desperate because my VS didnt recognize my DLL.
I get the error: "Could not load file or assembly .....The system cannot find the file specified."
After red the threads I tried to use gacutil.exe to add my assembly to the cache.
This action fails with the error: Failure adding Assembly to cache. Attempt to install an assembly without a strong name.
After that I tried to build a strong name through the follow execute:
Sn Vr ClassLibrary.dll. This action fails too. I get the follow Error description: dll does not represent a strongly named assembly.
What made me wrong?
Is there an easier workaround?
Have someone a good Idea could help me?
Hope to hear you soon.
Best regards,
Alex
January 22nd, 2008 12:59pm
Here is a link you should probably check out:
http://msdn.microsoft.com/msdnmag/issues/06/07/CLRInsideOut/default.aspx
Hope this helps...
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2008 4:16pm
Hey Eric,
Thanks a lot for the link!!! After about 5 hours Ive got the solution:
I build the assembly and the strong name key at the VS.
After that copying the dll-file into gac and framework folder.
Right now there areno moreproblems.
Thanks a lot!
p.s. is there no better workaround?
January 22nd, 2008 4:33pm
Here is an other example of using a custom assembly within a Script Task or Script Component:
http://microsoft-ssis.blogspot.com/2011/05/referencing-custom-assembly-inside.html
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2011 1:15pm