How do you register the dotnet component or assembly ?

Answer Posted / narayansahu

The steps to register a dot net component is:


The command line instruction to create a strong name.

sn -k ComInterOp.snk.
Strong name is a unique name created by hashing a 128-bit
encryption key against the name of the Assembly (ComInterOp
in our case). The strong name is created using SN.exe, that
would create ComInterOp.snk file, which we would use while
creating the DotNet Assembly.

The command line instruction to create an assembly using
the strong name

vbc /out:ComInterOp.dll /t:library /keyfile:ComInterOp.snk

Assembly Registration Tool.

The Assembly Registration Tool (Regasm.exe), reads the
metadata within an assembly and adds the necessary entries
to the registry, which allows COM clients to create DotNet
Framework classes transparently. The Assembly Registration
tool can generate and register a type library when you
apply the /tlb: option. COM clients require that type
libraries be installed in the Windows registry. Without
this option, Regasm.exe only registers the types in an
assembly, not the type library. Registering the types in an
assembly and registering the type library are distinct
activities.
The command line instruction to create and register
ComINterOp.tlb(Type Library) is

regasm ComInterOp.dll /tlb:ComInterOp.tlb.

The DotNet Services Installation Tool (Regsvcs.exe)

The command line instruction to install ComINterOp.dll in
GAC is

Gacutil -i ComInterOp.dll.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is minimum requirement for entity framework applications to run?

579


explain what does .edmx file contains?

633


What is definingquery in entity framework? : Entity framework

554


What are the possible razor view extensions?

572


How to Create an Intranet Site Using ASP.NET MVC?

593






Mention what is the difference between “ActionResult” and “ViewResult” ?

577


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

532


What is the "helperpage.isajax" property?

691


Why we need a separate mobile project template, while we can render our web application in mobile ?

592


How to change the action name in ASP.Net MVC?

574


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

562


What is the purpose of a web form?

552


What is viewbag?

616


Describe the gac in the .net framework.

577


What are Action Methods in ASP.NET MVC?

574