Tuesday 6 November 2012

.Net Framework Architecture And Its Components

.Net Framework Architecture And Its Components
In .NET Framework When application is Compiled into a byte code called MSIL.The MSIL code in An “Assemblies”.Assemblies are basically two types
  1. Private Assemblie
  2. Public Assemblie/Shared Assemblie
  1. Private Assemblie: An Assemblie that is private to run particular application is called as Private Assembly, when an Assembly is a private assembly ,Refered by three different .net applications and all these applicants are run at atime the three copies the private Assembly will be loaded into memory one for each application this wast the memory resource.
  2. Shared Assemblie:An Assemblie that is shared by more than one application is called as shared assembly. When an assembly is Shared Assembly and all these application run at a time then only one copy of the assembly is loaded into memory and is shared by all 3 applications,This Saves the memory resources.By default every assembly created in .NET a Private Assemblie.Assemblie Types are Two types:
  1. EXE---Process Assemblies
  2. DLL---Library Assemblies
Let us see how to Store the assemblies Process show below figure
Allocation of memory Difference in Private and Public shown below figure

Private assemblies are allocates each and every application as an individual memory allocation for this wastage of memory is high.where as in Public assemblie all applications are allocats only one copy of memory ,loaded into mermory and run at a time Shared by all applications.This is saves the memory.
Types Of Applications Supported By The .Net Framework:Basically .NET framework supports multiple types applications,more importtently 3 types of applications are there
  1. Windows Application
  2. Web Application 
  3. Class Libraries 
  4. Windows forms control Librarie
  5. Console Applications 
  6. Web Control Libries
1)Windows Application:It is used to create desktop application not executable it prepares classlibrary. It generates .EXE Assemblie
2)Web Application:It create Web Application,i.e distribute application.It creates or used .DLL Assemblie.
3)Class Libraries:This is not Application and not Executable ,it Prepares only Class Library.So it creates .DLL Assemblie
4)Windows forms control libraries:Using this template we are generate our own user controles.It also create .DLL Assemblie.
5)Console Application:It is a Command Line Applications runs DOS based.It creates .EXE Assemblie.
6)Web Control Library:It Creates a User define web Controls.It also prepare .DLL Assemblie.


Get More Details Here