HttpRuntime

HttpRuntime

HttpRunTime is one of the element of web.config file. web.config inherits machine.config file and here you can override default behaviour of settings stored in machine.config.

httpRuntime is node of System.Web element.


<httpRuntime useFullyQualifiedRedirectUrl="true|false"
             maxRequestLength="size in kbytes"
             executionTimeout="seconds"
             minFreeThreads="number of threads"
             minFreeLocalRequestFreeThreads="number of threads"
             appRequestQueueLimit="number of requests"
             versionHeader="version string"/>


useFullyQualifiedRedirectUrl
Make it false if client dowen't require it. Some client requires fully qualified url
like http://www.example.com/mypage_satalaj.aspx while redirecting the user.


maxRequestLength
you can control the maximum file upload size. It is useful for preventing denial of
service attacks caused by users posting large file to the server. Default is 4096KB (4 MB)
by configuring this atribute you can control the max file size of upload.

executionTimeout
Using this time in second, you can let the request execute before it is automatically
shut down by asp.net.

appRequestQueueLimit
The maximum number of requests that ASP.NET will queue for the application. When there are not enough free threads to process a request, the requests are queued.
Incoming requests will be rejected with a "503 - Server Too Busy" error when the queue exceeds the limit specified in this setting.

 

 

Tags:

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.