System.Web.Configuration Namespace
.NET Framework version 2.0
Configures the ASP.NET process model settings on an Internet Information Services ( IIS ) Web server. This class cannot be inherited.
Visibility |
Name |
Value Type |
Accessibility |
public |
AutoConfig
|
Boolean |
[ Get , Set ] |
public |
ClientConnectedCheck
|
TimeSpan |
[ Get , Set ] |
public |
ComAuthenticationLevel
|
ProcessModelComAuthenticationLevel |
[ Get , Set ] |
public |
ComImpersonationLevel
|
ProcessModelComImpersonationLevel |
[ Get , Set ] |
public |
CpuMask
|
Int32 |
[ Get , Set ] |
public |
Enable
|
Boolean |
[ Get , Set ] |
public |
IdleTimeout
|
TimeSpan |
[ Get , Set ] |
public |
LogLevel
|
ProcessModelLogLevel |
[ Get , Set ] |
public |
MaxAppDomains
|
Int32 |
[ Get , Set ] |
public |
MaxIOThreads
|
Int32 |
[ Get , Set ] |
public |
MaxWorkerThreads
|
Int32 |
[ Get , Set ] |
public |
MemoryLimit
|
Int32 |
[ Get , Set ] |
public |
MinIOThreads
|
Int32 |
[ Get , Set ] |
public |
MinWorkerThreads
|
Int32 |
[ Get , Set ] |
public |
Password
|
String |
[ Get , Set ] |
public |
PingFrequency
|
TimeSpan |
[ Get , Set ] |
public |
PingTimeout
|
TimeSpan |
[ Get , Set ] |
public |
RequestLimit
|
Int32 |
[ Get , Set ] |
public |
RequestQueueLimit
|
Int32 |
[ Get , Set ] |
public |
ResponseDeadlockInterval
|
TimeSpan |
[ Get , Set ] |
public |
ResponseRestartDeadlockInterval
|
TimeSpan |
[ Get , Set ] |
public |
RestartQueueLimit
|
Int32 |
[ Get , Set ] |
public |
ServerErrorMessageFile
|
String |
[ Get , Set ] |
public |
ShutdownTimeout
|
TimeSpan |
[ Get , Set ] |
public |
Timeout
|
TimeSpan |
[ Get , Set ] |
public |
UserName
|
String |
[ Get , Set ] |
public |
WebGarden
|
Boolean |
[ Get , Set ] |
|
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, 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" />
ASP.NET Configuration <processModel> Section