ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
How do you register the dotnet component or assembly ?
 Question Submitted By :: Pranab Mukherjee
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you register the dotnet component or assembly ?
Answer
# 1
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 ?    5 Yes 1 No
Narayansahu
[Netx Softwares Pvt. Ltd.]
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
What is Partial Assembly References? Microsoft2
Tell me about the internal working of Garbage collector? Honeywell2
What is serialization ? MMTS4
What is "out" parameter how it is used in methods? Polaris6
what is .net? IBM12
How do you register the dotnet component or assembly ? Accenture1
What is the main difference between VS 2005 and VS 2003? CTS3
im software developer (.net). i goth1b (usa )appointment 30th of this month . chennai people asking responsbilities .can anyone wht responsbilities i need say . plz help me  2
What is different between User Control and Web Control and Custom Control?  1
Have you designed any components? HP1
What are the mobile devices supported by .net platform  1
What does assemblyinfo.cs file consists of ? Accenture1
What is strong name?  4
how many ways for pass the parameters in the fuction in c#  3
What is CLR? How it will work?  1
Which is the best institute in chennai to learn DotNet?  6
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?  1
WHICH IS THE BEST INSTITUTE FOR DOTNET REAL TIME PROJECT TRAINING Cap-Gemini17
what are the different stepts to create shared assemblies?  1
Tell me the best web-sites for Learning the ASP DOT NET.  1
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com