Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions How do you register a NET assembly



How do you register a .NET assembly?

View(s): 17789

How do you register a .NET assembly?

Answer 1)

You no need to register any .NET (dll) assembly as long as you want use as private assembly. But if you want to use assembly as shared assembly, it needs to be register in GAC (Global Assembly Cache).

Registering the dll was used when distributing COM or ActiveX objects which need to add certain entries to the windows registry. In order to use a COM service (for example) you need to reference a GUID — that is, a unique identifier — which allows you to get a handle to the dll that implements the service (or provide access to it). Sometimes you can make reference to a fully-qualified name and get the same results.

In order for all that to work the dll needed to be registered. This "registration" process just creates several entries in the registry, but mainly these two: one associating a GUID with the location of the dll (so that you can reference it through the GUID without knowing where is it exactly located) and a second one associating the full name with the GUID. But again, this is just for COM or ActiveX objects.

When you develop an application in .NET, the libraries referenced on your project are automatically loaded when they're needed without you having to worry about locating or loading them. In order to to that, the framework checks two locations for the referenced libraries.
  • The first location is the application path.
  • The second location is the GAC.
The GAC (Global Assembly Cache) allows you to effectively register a dll to be used throughout the system and works as an evolution of the old registering mechanism.

So basically you just need to put the dll in the same folder of the application.

  Asked in:  ValueLabs   Expertise Level:  Experienced
  Last updated on Monday, 23 December 2013
2/5 stars (7 vote(s))

Register Login Ask Us Write to Us Help