[Note]asp.net request with the iis
2011-09-05 16:25
417 查看
before
going further, I want to talk about two important conceptions: kernel model and
user model, which are two application running mode that the windows provides
for the application.
The operation
system code runs in the kernel mode and the user custom application runs in the
user model, but if a user application tries to work directly with the hardware,
this action will be done in the kernel mode for protecting the OS components
from being damaged by user application
The reason
why I am talking about those two modes is there is a new feature added in the
iis 6 which is called http.sys and running in the kernel mode.
Now
get back to the topic. When a user type http:://myserver/myapplication/mypage.aspx
in the address bar. So what will happen in the next before he od she gets the
response.
I don’t
want to detail it anymore, because it is really a big hit. Below is a brief
description on this issue.
l User types
the link above and click Enter key.
l The request
reaches the iis and is caught by http.sys(in the kernel mode)
l The http.sys
forwards the request to the very application pool where the “myapplication” is
configured under(now is in the user model)
l There is
a corresponding worker process called “w3wp.exe” for each application pool. So the
current “w3wp.exe” will load ASP.NET ISAPI “aspnet_isapi.dll”
l The ISAPI will load the Http
Runtime
l Http
Runtime creates the HttpContent
l The request
will be passed into the Http pipeline where the http modules and the http
handlers are located.
l http
modules are executed before the request hits the http modules
l the
page life cycle starts after the request leaves the piple.
going further, I want to talk about two important conceptions: kernel model and
user model, which are two application running mode that the windows provides
for the application.
The operation
system code runs in the kernel mode and the user custom application runs in the
user model, but if a user application tries to work directly with the hardware,
this action will be done in the kernel mode for protecting the OS components
from being damaged by user application
The reason
why I am talking about those two modes is there is a new feature added in the
iis 6 which is called http.sys and running in the kernel mode.
Now
get back to the topic. When a user type http:://myserver/myapplication/mypage.aspx
in the address bar. So what will happen in the next before he od she gets the
response.
I don’t
want to detail it anymore, because it is really a big hit. Below is a brief
description on this issue.
l User types
the link above and click Enter key.
l The request
reaches the iis and is caught by http.sys(in the kernel mode)
l The http.sys
forwards the request to the very application pool where the “myapplication” is
configured under(now is in the user model)
l There is
a corresponding worker process called “w3wp.exe” for each application pool. So the
current “w3wp.exe” will load ASP.NET ISAPI “aspnet_isapi.dll”
l The ISAPI will load the Http
Runtime
l Http
Runtime creates the HttpContent
l The request
will be passed into the Http pipeline where the http modules and the http
handlers are located.
l http
modules are executed before the request hits the http modules
l the
page life cycle starts after the request leaves the piple.
相关文章推荐
- How iis5.x and iis6.0 interact with asp.net and process the request
- 解决ASP.NET 4.0 "A potentially dangerous Request.Form value was detected from the client". 错误
- ASP.NET操作EXCEL时出现的错误 Retrieving the COM class factory for component with CLSID(转)
- 处理asp.net出现A potentially dangerous Request.Form value was detected from the client
- discuz ASP.NET 4.0验证请求 A potentially dangerous Request.Form value was detected from the client
- [转]Sorting, Filtering, and Paging with the Entity Framework in an ASP.NET MVC Application (3 of 10)
- The NOTE of learning ASP.NET [18] 关于.NET(GC)内存回收机制
- The ASP.NET MVC request processing line
- 长时间执行ASP.NET导致错误“The Server Request timed out”错误
- ASP.NET 2.0 Language Swithcer and Theme Swicher 多语言转换和多样式主题转换
- Modifying the ASP.NET Request Queue Limit
- IIS7.5 也有Warm Up功能,让ASP.NET 第一次Request不变慢
- Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView
- The NOTE of learning ASP.NET [10] 关于.NET整型与浮点型变量使用上的效率和存储问题
- The NOTE of learning ASP.NET [19] 关于GC(内存回收机制)、对象的销毁和using的使用
- How to Create Text Image on the fly with ASP.NET
- Using the Visual Studio .NET 2003 Debugger with ASP.NET Applications
- Using the ASP.Net Runtime for extending desktop applications with dynamic HTML Scripts
- [Study Note] AJAX basics with jQuery in ASP.NET
- ASP.NET Internals – IIS and the Process Model (IIS5, IIS6)