About Assembly in .NET, types of assemblies, their
difference, How to register into GAC. How to generate the
strong names & its use ?

Answer Posted / poonam

In the Microsoft .NET framework, an assembly is is used by
the .NET CLR (Common Language Runtime)as a partially
compiled code library for use in deployment, versioning and
security. In the Microsoft Windows implementation of .NET,
an assembly is a PE (portable executable) file. There are
two types: process assemblies (EXE) and library assemblies
(DLL). A process assembly represents a process which will
use classes defined in library assemblies.
Assemblies consists of a manifest and one or more modules
and/or files like HTML, XML, images, video clips,...

An assembly must contain a single manifest and may
optionally contain type meta data, MSIL (Microsoft
Intermediate Language) and resources.

.Net Assembly can be classified in four Categories:

(A) With Respect to Program Access.
i) Private Assembly- It can be used only in one
application.This is the default style of assembly. Such
assemblies must reside in the application folder.
ii) Public/Shared Assembly- It can be used by all
applications in the server.
They must have a globally unique name and must be defined in
the GAC (Global Assembly Cache).

(B) With Respect to Number of Resources.
i) Static Assembly- It uses fixed resources.
ii) Dynamic Assembly- It supports dynamic creation
of resouces or files at
runtime programatically.

(C) With Respect to Deployment.
i) Satellite Assembly- Easily Deployable. (Visual
Studio 2005).
ii) Resource-Only Assembly- In Visual Studio 2003.

(D) With Respect to Number of Assemblies.
i) Single File Assembly- /Bin/x.dll

ii) Multi File Assembly- /Bin/x.dll
y.dll
z.dll
---
---
---

Is This Answer Correct ?    40 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the default route?

597


Which is the default http method for an action method?

505


What is razor code?

591


How do I use partial view?

526


How to change the action name in mvc?

540






What are the 2 popular asp.net mvc view engines?

510


Explain tempdata in asp.net mvc?

594


What is meant by tempdata in mvc?

531


What is presentation framework?

541


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

524


How we can multiple submit buttons in ASP.Net MVC

620


How we can call a javascript function on the change of a dropdown list in mvc?

567


What are the options can be configured in AJAX helpers?

580


Explain two instances where routing is not implemented or required?

584


Explain test driven development (tdd) ?

557