How .net assemblies are registred as private and shared
assembly ?

Answer Posted / prabhakar

Any assembly file (.net dll, .net exe ) is by default is
Private assembly. This means the assembly is visible only to
the application that loads/references it explicitly. Each
application that refers our private assembly will get its
own copy in its assembly.

Shared assembly is the assembly that is registered to the
GAC (Global Assembly Cache) that is part of the .Net
framework installed (under 'windows/assembly' directory) on
a system. We use 'gacutils.exe' binary to register the GAC
such as gacutil -i MyAssembly.exe. All applications those
reference a 'registered global assembly' would use the same
copy of the assembly present in the GAC. Hence it is called
'Shared assembly'.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entity sql? : Entity framework

744


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

2247


what is entity data model?

776


Explain the advantage of packaging over xcopy in .net?

740


What are bundling & minification features in asp.net mvc 4?

743


Which is the root namespace for fundamental types in .net framework?

764


What is the difference between viewbag and viewdata in mvc?

733


Explain peek method in tempdata in asp.net mvc?

815


What is the purpose of a web form?

743


Are there any parts of the .net framework 3.0 that only work on windows vista?

812


What are ajax helpers in asp.net mvc?

805


How can I return string result from action in asp.net mvc?

788


What is difference between razor and web form engine?

761


How to change the action name in mvc?

745


What is difference between html.beginform and ajax.beginform?

787