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
What is .net framework & its benefits?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
Briefly describe the roles of clr in .net framework?
What is web api‘s in asp.net mvc 4 ?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
Explain tempdata in mvc?
What are action filters?
What are the advantages of mvc over asp.net?
How can you return string result from Action in ASP.Net MVC?
What are the Core features of ASP.NET MVC?
Is .net core faster than .net framework?
What is .net framework used for?
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
What is the difference between tempdata and viewbag?
How we can add the CSS in ASP.Net MVC?