How do you register the dotnet component or assembly ?



How do you register the dotnet component or assembly ?..

Answer / 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

More Dot Net Framework Interview Questions

What is object service? : Entity framework

0 Answers  


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

0 Answers   B-Ways TecnoSoft,


Httpcontext objects?

2 Answers   HACL, HP,


What is difference between Viewbag and Viewdata in ASP.NET MVC?

0 Answers   NA,


What is html.renderpartial?

0 Answers  






Is mvc 4 supporting windows azure sdk (software development kit) ?

0 Answers  


mention what are the various methods provided by the dataset object to generate xml?

0 Answers   Microsoft,


what is complex type?

0 Answers   Microsoft,


i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?

0 Answers  


How to enable Attribute Routing?

0 Answers  


Describe the gac in the .net framework.

0 Answers  


Is it possibe to run 2 aplication on single m/c, one App is on .Net Framework 1.0 and another one is on .Net Fremework 2.0?

7 Answers  


Categories