ASP. NET Process Model

Source: Internet
Author: User
ASP. NET Process Model

1. Two process models:
①. IIS 5.0: aspnet_wp.exe

IIS versions earlier than 6.0 use the ASP. NET Process Model (aspnet_wp.exe ).
For example, IIS 5.0 and IIS 5.1 (default in Windows XP)
Each Independent ApplicationProgramThe version automatically runs in an independent process during running.
Locate all applications in the same running database version to share the same process (or multiple processes in network garden mode ).

②. IIS 6.0: w3wp.exe
IIS 6.0 uses the IIS 6.0 Process Model (w3wp.exe) and uses the application pool isolation function.
As long as applications share the same pool ID, the application pool allows them to run simultaneously in one or more processes.
If applications are assigned different application pools, they are isolated and never run in the same process.

2. Problems in the same process:
① Conflicting versions of the. NET Framework
If multiple versions of the. NET Framework are installed on a computer that uses IIS 6.0, a conflict occurs.
You may see an error message similar to the following in the "Application Event" log.

Different Versions of ASP. NET cannot be run in the same IIS process. Use the IIS management tool to reconfigure the server,
To run the application in a separate process.

If multiple versions of. NET Framework ASP. NET run in the same process, this error occurs.
Different Versions of. NET Framework and runtime libraries cannot coexist in the same process in parallel.
If two or more applications are mapped to different versions of ASP. NET but share the same application pool,
This conflict error usually occurs.

② Application interaction
If an application in a process ends abnormally, other applications in the process are affected.

3. Isolation Mode
To separate and protect ASP. NET applications running at the same time, the isolation mode is involved.

(IIS) 6.0 provides two different application isolation modes.
By default, the auxiliary process isolation mode is used. However, for backward compatibility, the IIS 5.0 Isolation Mode is also provided.
The following describes the application isolation modes and how to set the modes.

① Auxiliary process Isolation Mode

In IIS 6.0, the default application isolation mode is the auxiliary process Isolation Mode.
In this mode, the process model built in ASP. NET is disabled, but the auxiliary process isolation structure of IIS 6.0 is used.
Any configuration settings specified in the <processmodel> element of the machine. config file are ignored,
Except for the following attributes:

    • Maxworkerthreads
    • Maxiothreads
    • Responsedeadlockinterval

In the iis6.0 auxiliary process isolation mode, you must manually configure the appropriate application pool settings through the IIS manager.
For information on setting the appropriate application pool settings, see:
Application pool settings in IIS 6.0 auxiliary process Isolation Mode

②. IIS 5.0 Isolation Mode

When IIS 6.0 is in IIS 5.0 Isolation Mode, disable the auxiliary process isolation structure of IIS 6.0,
The process model built in ASP. NET is used for all ASP. NET applications on the computer.
In this mode, the process model settings are specified through the <processmodel> element in the machine. config file.

For more information about configuring process model settings when using IIS 5.0 Isolation Mode, see:
ASP. NET configuration in IIS 5.0 Isolation Mode

4. Set the Application Isolation Mode

When using IIS 6.0, you can select the secondary process Isolation Mode or IIS 5.0 Isolation Mode.
The Application Isolation Mode is applied globally to the IIS service and affects all web applications on the computer.
Application Isolation Mode cannot be applied to individual applications.

Select Application Isolation Mode in IIS 6.0

    1. Open the IIS console and click the plus sign to expand the local computer.
    2. Right-click the "web site" folder, click "properties", and then click the "services" tab.
    3. In "Isolation Mode", select the "run Web Service in IIS 5.0 Isolation Mode" check box to select IIS 5.0 isolation mode, or clear this check box to select the secondary process Isolation Mode.

"Service" tab in the "website properties" dialog box

The above is a basic description of the two isolation modes.

The following describes how to set the Isolation Mode and Its Impact and problems.
Application pool settings in IIS 6.0 auxiliary process Isolation Mode
ASP. NET configuration in IIS 5.0 Isolation Mode

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.