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

why DotNetFramework is included in building a software

2213


How does servicing work for the .net framework 3.0?

538


What are authentication filters in web api?

574


explain how you can load related entities in ef (entity framework)?

544


I want ask from plz smaple example code for Biztalkk server

1712






Explain entity lifecycle? : Entity framework

547


Explain the new features 3.5 framework against with the tool?

502


Explain the advantages of dependency injection (di) in asp.net mvc?

567


what is entity graph in entity framework?

619


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

700


What does mvvm mean?

551


What are sections?

575


What are the versions of .net framework?

534


What is partialview in asp.net mvc?

597


What are the options can be configured in AJAX helpers?

585