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 ()