What are the things that can be controlled in the HttpRuntime element in System.web element in the Web.Config file?
Posted on 11/18/2006 6:37:16 AM
in #ASP.NET 2.X
Hi/o:p>/SPAN>/P>
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. /o:p>/SPAN>/P>
<configuration> <system.web> <httpRuntime> <//httpRuntime>/o:p>/SPAN>/P>
<//system.web>/o:p>/SPAN>/P>
<//configuration> /SPAN>/P>The parameters of the httpRuntime are.
/SPAN><httpRuntime
executionTimeout = "HH:MM:SS"
maxRequestLength = "number" /o:p>/SPAN>/PRE> /SPAN>requestLengthDiskThreshold = "number"
useFullyQualifiedRedirectUrl = "[True|False]"
minFreeThreads = "number"
minLocalRequestFreeThreads = "number"
appRequestQueueLimit = "number"
enableKernelOutputCache = "[True|False]"
enableVersionHeader = "[True|False]" /o:p>/SPAN>/PRE> /SPAN>apartmentThreading = "[True|False]"/o:p>/SPAN>/PRE> /SPAN>requireRootedSaveAsPath = "[True|False]"
enable = "[True|False]" /o:p>/SPAN>/PRE> /SPAN>sendCacheControlHeader = "[True|False]"
shutdownTimeout = "HH:MM:SS"
delayNotificationTimeout = "HH:MM:SS"
waitChangeNotification = "number"
maxWaitChangeNotification = "number"
enableHeaderChecking = "[True|False]"
//>/o:p>/SPAN>/PRE>ExecutionTimeout/SPAN> is the time in which the application will time out the execution of a request./o:p>/SPAN>/PRE>MaxRequestLength/SPAN> 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./o:p>/SPAN>/PRE>RequestLengthDiskThreshold/SPAN> specifies the limit for the input stream-buffering threshold, in bytes. This value should not exceed the maxRequestLength attribute./o:p>/SPAN>/PRE>UseFullyQualifiedRedirectUrl/SPAN> 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./o:p>/SPAN>/PRE>MinFreeThreads defines the minimum number of free threads that should be available to the application to execute the request./o:p>/SPAN>/PRE>MinLocalRequestFreeThreads/SPAN> is the minimum number of free threads that ASP.NET keeps available to allow execution of new local requests./o:p>/SPAN>/PRE>AppRequestQueueLimit/SPAN> is the maximum number of requests that ASP.NET will queue for the application/o:p>/SPAN>/PRE>enableKernelOutputCache/SPAN> Specifies whether output caching is enabled. At this time, this attribute is only relevant when IIS version 6.0 or later is installed/o:p>/SPAN>/PRE>enableVersionHeader/SPAN> is the value of a version header that ASP.NET sends with every response/o:p>/SPAN>/PRE>apartmentThreading/SPAN> Enables apartment threading for classic ASP compatibility./o:p>/SPAN>/PRE>requireRootedSaveAsPath/SPAN> 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./o:p>/SPAN>/PRE>enable/SPAN> 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/o:p>/SPAN>/PRE>sendCacheControlHeader/SPAN> 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/o:p>/SPAN>/PRE>shutdownTimeout/SPAN> 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/o:p>/SPAN>/PRE>delayNotificationTimeout/SPAN> Specifies the time-out for delaying notifications. The default is 5 seconds/o:p>/SPAN>/PRE>waitChangeNotification/SPAN> 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./o:p>/SPAN>/PRE>maxWaitChangeNotification/SPAN> 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./o:p>/SPAN>/PRE>enableHeaderChecking/SPAN> Specifies whether ASP.NET should check the request header for potential injection attacks. If an attack is detected, ASP.NET responds with an error./o:p>/SPAN>/PRE>
Hope this Helps Thanks Vikram/P>
|
Posted on 5/8/2007 12:43:09 AM
hi cud you plz explain waitChangeNotification ,maxWaitChangeNotification with an Example
/p>
|