微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net-mvc-4 – 请求太大

我在我的页面上收到以下错误,我更新了IIS设置的发布限制,但是找不到如何增加工作缓冲区大小,对此的任何帮助都会很棒

Request Too Large
The "POST" request is too large for the internal work buffer:

    The internal work buffer size is 512 bytes.
    The "POST" request size is 2313 bytes. 

Return to last page

来自firebug的官方状态错误:413请求实体太大
我正在使用IIS7.5来设置页面

站点是通过.NET MVC4构建的

而且我无法减少帖子的大小,事实上在某些情况下它只会增加.

解决方法

找到答案,你必须更新IIS中的UploadReadAheadSize这篇文章告诉我如何从IIS中做到这一点.

http://tips4sysadmins.blogspot.com/2012/12/iis-75-uploadreadaheadsize.html

How to set the uploadReadAheadSize in IIS 7.5

  • Launch “Internet information Services (IIS) Manager”
    • Expand the Server field
    • Expand Sites
    • Select the site you want to make the modification for.
    • In the Features section,double click “Configuration Editor”
    • Under “Section” select: system.webServer>serverRuntime
    • Modify the “uploadReadAheadSize” section
    • Click Apply

Note that the value is in BYTES

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐