Operation is not valid due to the current state of the object.

向网站提交数据出现这个错误,提交的数据量比较大。

解决方法:

打开WEB.Config配置文件,找到<add key="aspnet:MaxHttpCollectionKeys" value="5000" />的语句,把value的值改大。比如把5000改成7000,或者更大。

猜你喜欢

转载自blog.csdn.net/qq_20941571/article/details/82905935