IIS & httpmodule & httphandler relationship

Source: Internet
Author: User

ASP. NET Request Processing Process:

When a * .aspxfile is requested, the request will be intercepted by the inetinfo.exe process. After determining the file suffix (aspx), the request will be forwarded
Aspnet_isapi.dll, aspnet_isapi.dll will pass through the HTTP pipeline (HTTP
Pipelinetime sends the request to the aspnet_wp.exeprocess. In the aspnet_wp.exe process, httpruntime is used to process the request.
Return the result to the client.
Inetinfo.exe process:Is the WWW Service Process, IIS service and aspnet_isapi.dll are stored in this process.
Aspnet_isapi.dll: A Win32 component used to process the. aspx file. The iisserver can only identify the .html file. When the IIS server finds that the requested file is a. aspx file, the IIS server submits it to aspnet_isapi.dll for processing.
Aspnet_wp.exe process:The ASP. NET Framework process provides a managed environment for. Net Running. the. net clr (Common Language Runtime) is stored in this process.

ASP. NET Framework processes an HTTP request:

Httprequest --> inetinfo.exe --> aspnet_isapi.dll --> aspnet_wp.exe --> httpruntime --> httpapplication
Factory --> httpapplication --> httpmodule --> httphandler
Factory --> httphandler. processrequest ()

ASP. NET
The request processing process is based on the pipeline model, which consists of multiple httpmodules and httphandler, ASP. NET
The HTTP request is passed to each httpmodule in the pipeline in sequence and finally processed by httphandler. After the processing is completed, the result is returned to the HTTP module in the pipeline again.
Client. We can intervene in the request processing process in each httpmodule.
Note: During HTTP request processing, only one httphandler can be called, but multiple httpmodules can be called.

When the request arrives at httpmodule, the system does not actually process the request, but we can add some

It information, or the request is intercepted and used for some additional work, or the request is terminated. After httphandler finishes processing the request, we can go to the corresponding httpmodule
The request processing result is processed again and returned to the client.

Original article: http://www.cnblogs.com/zhou-kevin/archive/2010/05/12/1733700.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.