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
How we can add the CSS in ASP.Net MVC?
Explain Model, view and Controllers in Asp.Net MVC?
What are the 2 popular asp.net mvc view engines?
What is .net architecture and framework?
What are the main components of .net framework?
What is a model in programming?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is the purpose of a web form?
explain why t4 entity is important in entity framework?
What is meant by domain model?
What is the benefit of entity framework?
How route table is created in ASP.NET MVC?
What is the difference between tempdata and viewbag?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
What is the significance of nonactionattribute?