关于错误:ASP.NET The URL-encoded form data is not valid.
来源:互联网 发布:js设置input只读属性 编辑:程序博客网 时间:2024/06/14 12:44
CSDN相关链接:http://support.microsoft.com/kb/2661403/zh-cn
昨天客户跟我说,突然一个页面频繁地报ThrowIfMaxHttpCollectionKeysExceeded这个异常。而且是数据量大的时候报错,数据量小的时候OK。 根据异常的名称也能看得差不多超过了某个的最大限制的最大值。
上网查阅资料发现是因为2011年12月29号微软发布的补丁限制了asp.net页面单次提交量为1000,如果页面提交量超过1000的话就会出现这个异常。
暂时解决方案:在web.config中添加
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="5000" />
</appSettings>
这个方案在我的项目中已经起了作用,感谢园友 小胜 的分享。
希望对同样遇到此异常的朋友们有所帮助。如果各位有别的解决方案也请不吝赐教。
- 关于错误:ASP.NET The URL-encoded form data is not valid.
- Probably ResourceManager is not defined in the View【ASP.NET MVC4+EXT.NET配置常见错误】
- 解决Firefox [ The URL is not valid and cannot be loaded ] 问题
- Chrome报表单提交错误,Form submission canceled because the form is not connected
- Xcode the identifier is not valid
- The specified bucket is not valid
- ASP.NET is not authorized to access the requested resource.
- .net错误 resourcepool is not supported on the current platform
- Operation is not valid due to the current state of object 错误解决
- java.lang.IllegalStateException: The display list is not valid. 错误分析
- IntelliJ IDEA The selected directory is not a valid home for JDK 错误解决办法
- 关于Eclipse“The selection is not within a valid module”的异常
- 关于java调用webservice异常 the char 'ox1e' after '' is not a valid xml character
- 关于conversion from string to type date is not valid错误
- 关于android的一个常见错误:Unable to add window --token is not valid
- form表单提交到servlet显示HTTP Status 404错误The requested resource is not available.
- The Tomcat installation directory is not valid. It is missing...
- ASP.NET 关于FORM认证
- 部分安全代码
- socket编程
- Eclipse安装SVN插件方式简明介绍
- SIFT特征介绍以及程序下载
- hdu 2032
- 关于错误:ASP.NET The URL-encoded form data is not valid.
- SHELL test [ 命令用法(一)
- SHELL test [命令用法(二)
- SHELL test [命令用法(三)
- .SHELL test [命令用法(四)
- SHELL test [命令用法(五)
- Android短信内容的监听
- 使用pdb调试Python程序
- 关于报表中同一个数据源下添加多个数据集得问题解决