Learning ASP. NET Framework deep adventure (1)

Source: Internet
Author: User

Since learning Asp.net, I have been learning basic knowledge and have no idea about some internal mechanisms of Asp.net framework. I have learned a lot by reading ASP. NET Framework deep adventure.
1 lifecycle of HTTP requests in ASP. NET

When the client requests a *. aspxfile from the Web server, the httprequest will be intercepted by the inetinfo.exe process. After judging the file suffix, the request will be forwarded to aspnet_isapi.dll, while aspnet_isapi.dll will pass an HTTP prepare process, ASP. net Framework will process this HTTP request through httpruntime. After processing, the result will be returned to the client.
2. In-depth ASP. NET Framework HTTP Runtime
After an HTTP request is sent to httpruntime, the request will be sent to a container called httpapplication factory, the container will provide an httpapplication instance to process the passed HTTP requests, and then the HTTP requests will enter the following containers in sequence: httpmodule httphandler factory httphandler when the process of the httphandler processresquest method in the system is complete, the entire HTTP request is processed, and the client gets the corresponding stuff. The process for ASP. NET Framework to process HTTP requests is as follows:

now we can organize a complete HTTP request in ASP. net Framework: httprequest-> inetinfo.exe-> response-> HTTP pipeline-> aspnet_wp.exe-> httpruntime-> httpapplication factory-> httpapplication-> httpmodule-> httphandler factory-> httphandler. processrequest ()

Related Article

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.