Vous êtes sur la page 1sur 11

General concepts of Dot Net

Agenda
Overview of Assemblies Private and Shared Assemblies ? Global Assembly Cache What is a Process ? Application Domains ? IIS Internet Information Server Worker Process Application Pools

Overview of Assemblies
Assemblies are the deployment units of .NET Applications EXE or DLL. .NET Applications consists of one or more assemblies. What s the difference between an Assembly and a native DLL or EXE? Though they both have the same file extension, .NET assemblies include metadata that describe all the types that are defined in the assembly with information about its members methods, properties, events and fields. There are lots of benefits to this new architecture as Assemblies. For example, if your program is a component, you can now "install" it by simply copying it to the new location. There is no need to register components - in VB 6 these are the old COM modules - in the Windows registry. Another benefit is that components can be programmed using different languages with complete freedom. After they're compiled into an assembly, they're all just IL programs

Private and Shared Assembly


What is private and shared assembly? Private Assembly : The assembly which is used only by a single application is called as private assembly. Suppose you created a DLL which encapsulates your business logic. The private assembly resides in the same directory as the application or subdirectories.

GAC
Shared Assembly : Suppose that you are creating a general purpose DLL which provides functionality which will be used by variety of applications. Now, instead of each client application having its own copy of DLL you can place the DLL in GAC ('global assembly cache ). Such assemblies are called as shared assemblies. What is Global Assembly Cache? Cache? Global assembly cache is nothing but a special disk folder where all the shared assemblies will be kept. It is located under <drive>:\WinNT\Assembly folder drive>:\WinNT\

Process ?
Process:
Each process provides the resources needed to execute a program. A process has a virtual address space, executable code, open handles to system objects. Operating systems and runtime environments typically provide some form of isolation between applications. For example, Windows uses processes to isolate applications. This isolation is necessary to ensure that code running in one application cannot adversely affect other, unrelated applications.

Application Domain
Application Domain : An application domain is used to isolate applications from one another. This is the same way an operating system process works. The separation is required so that applications do not affect one another. Advantages : The application in an application domain can be stopped without affecting the state of another application domain running in the same process. A fault or exception in on application domain will not affect other application domains or crash the entire process that hosts the application domains.

IIS
IIS (Internet Information Server) is one of the most powerful web servers from Microsoft that is used to host your ASP.NET Web application. IIS has it's own ASP.NET Process Engine to handle the ASP.NET request. So, when a request comes from client to server, IIS takes that request and process it and send response back to clients.

IIS

Versions of IIS IIS 4.0 :Microsoft Windows NT 4.0 operating system IIS 5.0 : Microsoft Windows 2000 Server operating system IIS 5.1 : Microsoft Windows XP Professional operating system IIS 6.0 : Windows Server 2003 IIS 7.0 : Windows Server 2008

Request Processing : 1. Worker Process 2. Application Pool

Worker Process

Worker Process:

Worker Process (w3wp.exe) runs the ASP.Net application in IIS. This process is responsible to manage all the request and response that are coming from client system. All the ASP.Net functionality runs under the scope of worker process. When a request comes to the server from a client worker process is responsible to generate the request and response. In a single word we can say worker process is the heart of ASP.NET Web Application which runs on IIS.

Application Pool
Application Pool: Application pool is the container of worker process. Application pools is used to separate sets of IIS worker processes that share the same configuration. Application pools enables a better security, reliability, and availability for any web application. The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected. This makes sure that a particular web application doesn't not impact other web application as they are configured into different application pools.

Vous aimerez peut-être aussi