Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 are the 3 segments of the default route, that is present in an ASP.NET MVC application?

0 Answers   NA,


What is the necessity for singning an assembly with a strong name?

1 Answers   L&T,


If we write return statement in finally block will it works fine or throws any error?

7 Answers   Kanbay,


Can you declare an override method to be static if the original method is non-static

1 Answers  


What is the use of razor view engine?

0 Answers  


what are generics? Without generics what are the disadvantages in 1.1?

3 Answers   HP, iSoft, nTech Solutions,


What are the new enhancements done in default project template of asp.net mvc 4?

0 Answers  


What are the different types of filters, in an asp.net mvc application?

1 Answers   NA,


How we can multiple submit buttons in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


How the ‘page lifecycle’ of ASP.Net MVC does works?

0 Answers  


What is MSIL, IL, CTS?

13 Answers  


What is web api‘s in asp.net mvc 4 ?

0 Answers  


Categories