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 renderbody?

549


What is Differnce between html.action and ajax.action?

570


Can a view be shared across multiple controllers? If yes, how we can do that?

592


What is the advantage of using asp.net routing?

595


Can I uninstall microsoft .net framework?

554






What is .net architecture and framework?

583


What is attribute routing in mvc?

579


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

1806


Why should we go for entity framework?

529


Explain how you can implement Ajax in MVC?

550


What is object service? : Entity framework

635


What is entityset? : Entity framework

581


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

597


what do you mean by navigation property?

596


Explain the advantages of asp.net mvc over asp.net?

597