If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength
?
The MaxRequestLength property specifies the limit for the buffering threshold of the input stream. For example, this limit can be used to prevent denial of service attacks that are caused by users who post large files to the server.
Large file uploads in ASP.NET The default maximum filesize is 4MB - this is done to prevent denial of service attacks in which an attacker submitted one or more huge files which overwhelmed server resources. If a user uploads a file larger than 4MB, they'll get an error message: "Maximum request length exceeded."
The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS.
Type inetmgr in windows Run (WinKey + r) click your server name on left panel and in right panel in IIS section double click Request Filtering. on the rightest panel click Edit Feature Settings... . In Request Limits section you can change the maxAllowedContentLength.
Maximum is 2097151, If you try set more error occurred.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With