ProcessModelSection Class
Assembly: System.Web (in system.web.dll)
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.
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.ProcessModelSection