Asp.net principle (article 1), asp.net Principle Article 1
Asp.net (Article 1)
After a user enters a URL in the browser, the browser sends a request to the server. At this time, IIS is the first Server responsible for processing requests. Then IIS will distribute the request to different isapis based on the request URL extension.
The process is as follows:
1. IIS => aspnet_isapi stage
ISAPI is an underlying WIN32 API. developers can use these interfaces to go deep into IIS, allowing IIS to support various processing programs. ISAPI is a bridge interface, which is usually used to connect high-level tools with IIS. For example, Apache and Tomcat in Windows are built on ISAPI. ISAPI is the first IIS entry point for custom Web request processing.
In the preceding steps, IIS processes requests for html pages, txt files, jpeg and gif images by itself. When a request is found to be a resource of Asp.net (such *. aspx ,*. asmx ,*. the request is passed to ASP.. net isapi extension aspnet_isapi.dll.
Aspnet_isapi.dll can process multiple resource types, including Web Services and HTTP processing program calls.
For example, Handler ing in IIS7:
The above ing means that the path of the. aspx extension is passed to the aspnet_isapi.dll handler for processing.
2. aspnet_isapi => auxiliary process
The auxiliary process is in (iis5is aspnet_wp.exepoliciis6is w3wp.exe ).
Communication between aspnet_isapi and auxiliary processes:
Processing logic of IIS and aspnet_isapi:
3. Asp.net runtime environment:
The executable files that constitute the runtime environment of Asp.net are as follows:
Name |
Type |
Account |
Aspnet_isapi.dll |
Win32 DLL |
LOCAL SYSTEM |
Aspnet_wp.exe |
Win32 EXE |
ASPNET |
Aspnet_filter.dll |
Win32 DLL |
LOCAL SYSTEM |
Aspnet_state.exe |
Win32 EXE |
ASPNET |
The aspnet_filter.dll component is a small Win32 ISAPI filter used to back up the cookieless session Status of ASP. NET applications.
The role of aspnet_state.ext is more important to Web applications because it is used to manage session states.
So far, IIS has forwarded the request to the auxiliary process, which is actually the Starting Sign of Asp.net. We usually call Asp.net development to start from this place.
Reproduced in the heart, web site: http://www.cnblogs.com/kissdodog/p/3527379.html