单击“提交”按钮时如何解决此错误 [英] How to solve this error when click submit buttion

查看:83
本文介绍了单击“提交”按钮时如何解决此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我点击提交后会产生这样的错误



最大数量表单,查询字符串或已发布的文件项已从 > 中读取。要更改的最大允许请求集合数  > 20001 ,更改  aspnet:MaxHttpCollectionKeys设置。有关详细信息,请参阅http: //   go.microsoft.com/fwlink/?LinkId=238386。 







如何解决这个问题

谢谢

解决方案

请检查这个

< appsettings> 
< add key = aspnet:MaxHttpCollectionKeys value = 5000 />
< / appsettings >





或者您将修改页面上的控件数量。


您需要增加MaxHttpCollectionKeys的大小,直到它满意为止,但增加此密钥实际上可能会增加服务器的漏洞,因此需要关注应用程序的安全性。一个好的建议是修改(尽可能减少)页面上的控件数量。

 <   appsettings  >  
< ; add key < span class =code-keyword> = aspnet:MaxHttpCollectionKeys value = 2500 / >
< / appsettings >


Hi Friends
I have generate error like this when click submit buttion

The maximum number of form, query string, or posted file items has already been read from the request. To change the maximum allowed request collection count from its current value of 20001, change the "aspnet:MaxHttpCollectionKeys" setting. See http://go.microsoft.com/fwlink/?LinkId=238386 for more information.




How to solve this
thanks

解决方案

Please check this

<appsettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
</appsettings>



or you would be to revise its number of controls on the page.


You need to increase the size of MaxHttpCollectionKeys until it is satisfactory, but increasing this key may actually increase the vulnerability of your server so need to attention on security of your application too. A good tip would be to revise (reduce as much as you can) number of controls on the page.

<appsettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="2500" />
</appsettings>


这篇关于单击“提交”按钮时如何解决此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆