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

Describe the gac in the .net framework.

0 Answers  


Which is the best institute in chennai to learn DotNet?

7 Answers  


Does .NET Framework support SAX?

0 Answers   Wipro,


how to maintain the session state? what is Abstract class and interface and inheritence with example?

2 Answers  


I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?

0 Answers   Accenture,






Is .net core faster than .net framework?

0 Answers  


What are the 3 main components of an asp.net mvc application?

0 Answers  


What you mean by routing in mvc?

0 Answers  


Can any particular component of .net framework 3.0 be removed?

0 Answers  


Why string are called Immutable data Type

1 Answers  


please tell me the best book of asp.net in the markit. which explain in simple and detail.

4 Answers  


what do you mean by navigation property?

0 Answers   Microsoft,


Categories