This documentation is archived and is not being maintained.

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 NotInheritable Class ProcessModelSection _
	Inherits ConfigurationSection
Dim instance As ProcessModelSection

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.

  enable="True" timeout="Infinite" 
  shutdownTimeout="00:00:05" requestLimit="Infinite"
  requestQueueLimit="5000" restartQueueLimit="10" 
  memoryLimit="60" webGarden="False" cpuMask="0xffffffff" 
  userName="machine" password="AutoGenerate" logLevel="Errors"
  comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
  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 
   Dim configuration _
   As System.Configuration.Configuration = _

' Get the section. 
   Dim processModelSection _
   As System.Web.Configuration.ProcessModelSection = _
   CType(configuration.GetSection( _
   "system.web/processModel"), ProcessModelSection)

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