码迷,mamicode.com
首页 > Web开发 > 详细

IIS: 配置web.config解决Maximum request length exceeded错误

时间:2015-10-13 15:20:53      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:

In system.web

<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />

And in system.webServer

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824" />
    </requestFiltering>
</security>

IMPORTANT : Both of these values must match. In this case, my max upload is 1024 megabytes.

maxRequestLength has 1048576 KILOBYTES, and maxAllowedContentLength has 1073741824 BYTES.

IIS: 配置web.config解决Maximum request length exceeded错误

标签:

原文地址:http://www.cnblogs.com/ilovewindy/p/4874630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!