【转载】关于错误:ASP.NET The URL-encoded form data is not valid. .
2012-02-11 15:44
429 查看
原文地址:http://blog.csdn.net/septen32/article/details/7212040
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>
这个方案在我的项目中已经起了作用,感谢园友 小胜 的分享。
希望对同样遇到此异常的朋友们有所帮助。如果各位有别的解决方案也请不吝赐教。
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.
- URL-encoded form data is not valid ,Operation is not valid due to the current state of the object
- ASP.NET4.0错误:Operation is not valid due to the current state of the object
- 解决asp.net error: Operation is not valid due to the current state of the object
- AS.NET2.0 用户控件错误!!The base class includes the field 'MyControl_1', but its type (MyControl) is not compatible with the type of control (ASP.MyControl_ascx).
- .net邮件错误 :The specified string is not in the form required for a subject.
- 【ASP.NET Core】解决“The required antiforgery cookie "xxx" is not present”的错误
- Asp.Net 之 WebService部署到服务器后出现" The test form is only available for requests from the local machine "
- Enterprise Manager is not able to connect to the database instance.(ORA-28001)错误的解决方法[转载]
- [.net] 关于CS0016: Could not write to output file ‘c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files… ‘Access is denied.’ 的解决办法
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- .NET浏览ASP.NET页面时出现This application is currently offline. To enable the application, remove...错误的解决办法
- 关于xml配置文件无元素提示和the root element of the document is not <xsd:schema>.错误
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- 关于错误perhaps the designated entry point is not set的解决方法
- 关于创建FLex项目时候的 Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid.错误
- debian安装vmware tools错误:Searching for a valid kernel header path... The path "" is not valid
- C++中关于assign 0 to _debugger_hook_dummy so that the function is not folded in retail的错误
- 关于asp.net Page 里与form 相关的Js错误
- 在MOSS2007上加载工作流出现以下错误:“The form cannot be displayed because session state is not available”