Export (0) Print
Expand All

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

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.

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft