How do you register a .NET assembly?

Answers were Sorted based on User's Feedback



How do you register a .NET assembly?..

Answer / srikanth

Using Regasm.exe tool

Is This Answer Correct ?    2 Yes 0 No

How do you register a .NET assembly?..

Answer / lavanya

first step is to create a strong name for your assembly by
using the sdk tool named sn and then using the regasm tool
to register the meta data into the registry.

Syntax:

To create a key pair

sn –k myKey.snk

To sign the assembly with a strong name using attributes

[assembly: AssemblyKeyFileAttribute(@"..\..\key.snk")]

To sign the assembly with a strong name using assembly
linker

al /out:MyAssembly.dll MyModule.netmodule /keyfile:myKey.snk

Is This Answer Correct ?    3 Yes 1 No

How do you register a .NET assembly?..

Answer / saiish bhat

To register an assembly : Regsvr32

Also you can use GacUtil.exe tool

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Differentiate session and cookie

1 Answers  


how can we display records in single datagrid using two datasets in different place?

2 Answers   Global Computer, Honeywell,


explain ado.net

6 Answers  


Explain authentication levels in .net ?

3 Answers  


What is the use of mcommand ? mcommand.fill(ds,"orderdetails");

1 Answers   Netsweeper,






What is the syntax for datagrid and specifying columns?

0 Answers   Microsoft, SF,


Can we mention error in web.config file?

2 Answers  


What are the different types of sessions in asp.net? Name them?

0 Answers  


Trigger syntax in sql2000

1 Answers   Wipro,


What is Model-View-View Model?

0 Answers   MCN Solutions,


What are different types of directives in .NET ?

1 Answers  


How to implement Authentication and Authorization?

0 Answers   QuestPond,


Categories