Re: How to register .NET Dlls



In order to sign your assemly you can use assembly attributes, usually
defined in AssemblyInfo.cs.
The attributes will look like

[assembly: AssemblyKeyFile(@"C:\Snk\MyCustAssembly.snk")]
[assembly: AssemblyKeyName("MyCustAssembly")]

After build your assembly will be "signed" and can be placed in the GAC

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins" <RobyEisenbraunMartins@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote in message news:7C3A9A34-5F88-40A5-AAFB-401D70C8A42F@xxxxxxxxxxxxxxxx
> I can generate a key file using sn.exe, but when I try to execute
> gacutul
> I receive an error message asking for the "strong name". How can i tie the
> dlls with the strong "name"?
>
> "Vadym Stetsyak" wrote:
>
>> Yes, you can register them in the GAC. In order to do that you'll need to
>> have sign your assemblies (dlls), using key generated by sn.exe tool.
>> Then in the client machine you perfrm gacutil -i your.dll. Your assembly
>> is
>> in the GAC, and anyone have access it using type name.
>>
>> --
>> Vadym Stetsyak aka Vadmyst
>> http://vadmyst.blogspot.com
>>
>> "Roby Eisenbraun Martins"
>> <RobyEisenbraunMartins@xxxxxxxxxxxxxxxxxxxxxxxxx>
>> wrote in message
>> news:74A89CD3-5351-47B2-A3F7-27F4849B6580@xxxxxxxxxxxxxxxx
>> > Hi,
>> > I'm trying to register my Dlls in the client machine without using
>> > any
>> > deployment package. I tried copying all the files and Dlls to a
>> > specified
>> > folder and run, but then the application crashes.
>> > Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
>> > registry the Dlls in the client machine?
>> >
>> > Thank you,
>> > Roby Eisenbraun Martins
>>
>>
>>


.



Relevant Pages

  • Re: How to register .NET Dlls
    ... What do you mean by "register"? ... assemblies you'll have to run regasm or the equivalent on the target system. ... I tried copying all the files and Dlls to a specified ...
    (microsoft.public.dotnet.general)
  • Re: HELP!! Im having "DLL Hell" in .NET
    ... huge known bug if you don't do this (and your dlls are larger than ... It is a client server application with 1 exe as the ... > all the supporting assemblies in directories in the root. ... > true for each reference in these assemblies. ...
    (microsoft.public.dotnet.general)
  • Re: Application security
    ... > - to prevent user from using my dlls directly, ... Assigning strong names to your assemblies is ... The ones you want to protect or the ones from which you want to ... > - I want to manage demo and customers version with license key policy. ...
    (microsoft.public.dotnet.security)
  • CCW & Managed Memory Leak?
    ... A few of these DLLs have references to .NET assemblies. ... Of course there you do have worker process recycling to help ... I'm confident that if this was running under IIS6 and using the IIS6 ...
    (microsoft.public.dotnet.framework.interop)
  • Unmanaged Multifile Assembly in C++
    ... I have several unmanaged C++ dlls that were being shared by several ... projects which were successfully converted to assemblies. ... of those dlls is dependent on another dll which we currently handle by ... (not embedding a manifest in file01 but embedding one in file02.) ...
    (microsoft.public.dotnet.languages.vc)