Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum value of maxRequestLength?

If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength?

like image 202
Erkan BALABAN Avatar asked Dec 28 '10 18:12

Erkan BALABAN


People also ask

What is 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.

What is Maximum request length exceeded?

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."

What is maxAllowedContentLength in web config?

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.

How do I change maxAllowedContentLength?

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.


1 Answers

Maximum is 2097151, If you try set more error occurred.

like image 191
Petr Avatar answered Nov 01 '22 09:11

Petr