What are the things that can be controlled in the HttpRuntime element in System.web element in the Web.Config file?

Hi

In Asp.Net 2.0 we can set many property related to the working of the application. We can set the Execution time out, upload file size etc for the application. We need to set these properties in the httpRuntime section, which is under <system.web>, which will be under <configuration> section.

<configuration>
<system.web>
<httpRuntime>
<//httpRuntime>

<//system.web>

<//configuration>

The parameters of the httpRuntime are.



<httpRuntime

   executionTimeout = "HH:MM:SS"

   maxRequestLength = "number"
   requestLengthDiskThreshold = "number" 

   useFullyQualifiedRedirectUrl = "[True|False]"

   minFreeThreads = "number"

   minLocalRequestFreeThreads = "number"

   appRequestQueueLimit = "number"

   enableKernelOutputCache = "[True|False]"

   enableVersionHeader = "[True|False]"
   apartmentThreading = "[True|False]"
   requireRootedSaveAsPath = "[True|False]"

   enable = "[True|False]"
   sendCacheControlHeader = "[True|False]" 

   shutdownTimeout = "HH:MM:SS"

   delayNotificationTimeout = "HH:MM:SS"

   waitChangeNotification = "number"

   maxWaitChangeNotification = "number"

   enableHeaderChecking = "[True|False]"

//>
ExecutionTimeout is the time in which the application will time out the execution of a request.
MaxRequestLength is the maximum size of request that the application will accept. This property is very useful when we want to limit the size of the upload in the site.
RequestLengthDiskThreshold specifies the limit for the input stream-buffering threshold, in bytes. This value should not exceed the maxRequestLength attribute.
UseFullyQualifiedRedirectUrl indicates whether client-side redirects are fully qualified (in {HYPERLINK "http:////server//path”} form, which is necessary for some mobile controls) or whether relative redirects are instead sent to the client.
MinFreeThreads defines the minimum number of free threads that should be available to the application to execute the request.
MinLocalRequestFreeThreads is the minimum number of free threads that ASP.NET keeps available to allow execution of new local requests.
AppRequestQueueLimit is the maximum number of requests that ASP.NET will queue for the application
enableKernelOutputCache Specifies whether output caching is enabled. At this time, this attribute is only relevant when IIS version 6.0 or later is installed
enableVersionHeader is the value of a version header that ASP.NET sends with every response
apartmentThreading Enables apartment threading for classic ASP compatibility.
requireRootedSaveAsPath Specifies whether the filename parameter in a Save As method must be an absolute path. The ASP.NET process must have permission to create files in the specified location.
enable Specifies whether the application domain (AppDomain) is enabled to accept incoming requests at the current-node and child-node level. If False, the application is effectively turned off. The default is true
sendCacheControlHeader Specifies whether to send a cache control header, which is set to Private, by default. If True, client-side caching is disabled. the default is true
shutdownTimeout Specifies the number of minutes that are allowed for the worker process to shut down. When the time-out expires, ASP.NET shuts down the worker process. The default is 90 seconds
delayNotificationTimeout Specifies the time-out for delaying notifications. The default is 5 seconds
waitChangeNotification Specifies the time, in seconds, to wait for another file change notification before restarting the AppDomain. Set this attribute to a number that is greater than the time between the updates of two file copy change notifications. File change notifications are combined based on the value of this attribute and the maxWaitChangeNotification attribute.
maxWaitChangeNotification Specifies the maximum number of seconds to wait from the first file change notification before restarting the AppDomain for a new request. Set this attribute to a number that is greater than the length of time to complete any file copy processes. File change notifications are combined based on the value of this attribute and the waitChangeNotification attribute.
enableHeaderChecking Specifies whether ASP.NET should check the request header for potential injection attacks. If an attack is detected, ASP.NET responds with an error.

Hope this Helps
Thanks
Vikram


Share this post   Email it

Feedback

Posted on 5/8/2007 12:43:09 AM

hi cud you plz explain waitChangeNotification ,maxWaitChangeNotification with an Example

Please post your comments:

Name:  
Email (optional): Your email address will not be posted.
URL (optional):
Comments: HTML will be ignored, URLs will be converted to hyperlinks  
Enter the text you see in the box:
 

Copyright © 2006 - 2012 Vikram Lakhotia