maxRequestLength的最大价值? [英] Maximum value of maxRequestLength?
问题描述
如果我们使用的是IIS 7和.NET Framework 4,会是怎样的maxRequestLength的最大值?
If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength?
推荐答案
按<一个href="http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength.aspx">MSDN默认值是4096 KB(4 MB)。
As per MSDN the default value is 4096 KB (4 MB).
更新
对于最大的,因为它是一个int数据类型,那么理论上你可以去到2,147,483,647。此外,我想确保你知道,IIS 7使用 maxAllowedContentLength 指定文件上传大小。默认情况下它被设置为3000 30MB左右,并作为一个UINT,它应该从理论上允许一个最大的4,294,967,295
As for the Maximum, since it is an int data type, then theoretically you can go up to 2,147,483,647. Also I wanted to make sure that you are aware that IIS 7 uses maxAllowedContentLength for specifying file upload size. By default it is set to 30000000 around 30MB and being an uint, it should theoretically allow a max of 4,294,967,295
这篇关于maxRequestLength的最大价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!