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

Answers were Sorted based on User's Feedback



About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / 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

About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / vikas sharma

Assembly are the basic building blocks of .net
Three type of assembly are there.
1. Private Assembly
2. Shared Assembly
3. Satelite Assembly.
GAC is used to provide the different versioning.
Strong name used to use it without any complication or
fault.

Is This Answer Correct ?    36 Yes 13 No

About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / sheshasai

1. Private Assembly
2. Shared Assembly
3. Satelite Assembly.

Is This Answer Correct ?    15 Yes 4 No

About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / sivasubramanian hariharan

Assembly is a basic building blocks of .net framework.
There are 3 types of assembly.
1. Private Assembly
2. Shared Assembly
3. Satelite Assembly.
GAC is used to provide the different versioning.Strong name
used to use it without any complication or fault.

Is This Answer Correct ?    11 Yes 4 No

About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / kishore

.method private hidebysig static void Main(string[] args)
cil managed {
.entrypoint
.custom instance void [mscorlib]
System.STAThreadAttribute::.ctor() = ( 01 00 00 00 )
// Code size 11 (0xb)
.maxstack 1
IL_0000: ldstr "Hello World"
IL_0005: call void [mscorlib]
System.Console::WriteLine(string)
IL_000a: ret } // end of method Class1::Main

Is This Answer Correct ?    1 Yes 1 No

About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to gen..

Answer / hari

Their is only two type of assemblies
That is Private and Shared Assembly.

Is This Answer Correct ?    11 Yes 13 No

Post New Answer

More Dot Net Framework Interview Questions

What is the use of trace utility ?

2 Answers  


If you are using components in your application, how can you handle exceptions raised in a component ?

4 Answers   Accenture, BirlaSoft,


Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???

6 Answers   3i Infotech,


What are actions in asp.net mvc?

0 Answers  


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

0 Answers  






Is it possible to cancel filter execution?

0 Answers  


Why is entity framework used?

0 Answers  


How route table has been created in ASP.NET ASP.Net MVC?

0 Answers  


What is meant by domain model?

0 Answers  


can we change the page layout in ASP.NET 2.0 as grid layout like in the previous version?

1 Answers   TCS,


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

0 Answers  


What is associationset? : Entity framework

0 Answers  


Categories