Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ProcessModelSection Class

Configures the ASP.NET process model settings on an Internet Information Services (IIS) Web server. This class cannot be inherited.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
public sealed class ProcessModelSection : ConfigurationSection
public final class ProcessModelSection extends ConfigurationSection
public final class ProcessModelSection extends ConfigurationSection
Not applicable.

The ProcessModelSection class provides a way to programmatically access and modify the processModel section of a configuration file.

The ProcessModelSection class controls various aspects of the ASP.NET worker process, including its lifetime, the number of instances created at a time, what security identity it runs under, and the size of the CLR thread pool to service requests.

When ASP.NET is running under IIS 6 in native mode, ASP.NET uses the IIS 6 process model and ignores most settings in this section. Use the IIS administration user interface (UI) to configure those properties. ASP.NET still uses the following properties, which can be configured through the configuration file: RequestQueueLimit, ResponseDeadlockInterval, MaxWorkerThreads, MaxIOThreads, MinWorkerThreads, and MinWorkerThreads.

The processModel section cannot be encrypted using the protected-configuration feature or tools because it is consumed by the ASP.NET ISAPI extension. For details, see How to: Configure ASP.NET Applications for an ASP.NET Version.

This example demonstrates how to specify values declaratively for several attributes of the processModel section, which can also be accessed as members of the ProcessModelSection class.

The following configuration file example shows how to specify values declaratively for the processModel section.

<processModel 
  enable="True" timeout="Infinite" 
  idleTimeout="Infinite" 
  shutdownTimeout="00:00:05" requestLimit="Infinite"
  requestQueueLimit="5000" restartQueueLimit="10" 
  memoryLimit="60" webGarden="False" cpuMask="0xffffffff" 
  userName="machine" password="AutoGenerate" logLevel="Errors"
  clientConnectedCheck="00:00:05" 
  comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
  responseDeadlockInterval="00:03:00" 
  responseRestartDeadlockInterval="00:03:00" autoConfig="True"
  maxWorkerThreads="20" maxIoThreads="20" minWorkerThreads="1"
  minIoThreads="1" serverErrorMessageFile="" pingFrequency="Infinite"
  pingTimeout="Infinite" asyncOption="20" maxAppDomains="2000" 
/>

The following code example demonstrates how to use the ProcessModelSection class.


// Get the Web application configuration
System.Configuration.Configuration configuration = 
    WebConfigurationManager.OpenWebConfiguration("/aspnetTest");

// Get the section.
System.Web.Configuration.ProcessModelSection 
    processModelSection = 
        (ProcessModelSection)configuration.GetSection(
        "system.web/processmodel");


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.