Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the ASP.NET ISAPI request processing process of IIS6?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What is the ASP.NET ISAPI request processing process of IIS6? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

ASP.NET request processing process of IIS6

Explanation of the picture:

IIS6's ASP.NET request handler, IIS 5.x, listens to Request through InetInfo.exe and distributes Request to Work Process. In other words, the monitoring and distribution of Request in IIS 5.x is done in User Mode, and in IIS 6, this work is ported to kernel Mode, all through a new component: http.sys.

Note: to prevent user applications from accessing or modifying critical operating system data, windows provides two processor access modes: user mode (User Mode) and kernel mode (Kernel Mode). In general, user programs run under User mode, while operating system code runs under Kernel Mode. The code for Kernel Mode allows access to all system memory and all CPU instructions.

Under User Mode, http.sys receives an aspx-based http request, and then it checks which Application Pool the Request-based Application belongs to based on the Metabase in the IIS, and if the Application Pool does not exist, create it. Otherwise, send the request directly to the Queue of the corresponding Application Pool.

Each Application Pool corresponds to a Worker Process:w3wp.exe, and there is no doubt that it runs under User Mode. Mapping for Application Pool and worker process is maintained in IIS Metabase. WAS (Web Administrative service) based on such a mapping, pass the request that exists in an Application Pool Queue to the corresponding worker process (if not, create such a process). When the worker process is initialized, load the ASP.NET ISAPI,ASP.NET ISAPI and then load the CLR. The process of * is the same as IIS 5.x: create an Application Domain; for Application through AppManagerAppDomainFactory's Create method, process Request through ISAPIRuntime's ProcessRequest, and then enter the process into ASP.NET Http Runtime Pipeline.

This is the answer to the question about the ASP.NET ISAPI request processing process of IIS6. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report