部署到活动服务器时出错:由于对象的当前状态,操作无效. [英] Error on deployment to live server : Operation is not valid due to the current state of the object.

查看:116
本文介绍了部署到活动服务器时出错:由于对象的当前状态,操作无效.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,CP专家

我正在开发一个由gridviews中约2000到3000个文本框组成的网页.我填写所有数据并提交给数据库.该应用程序在本地可以正常运行.但是在具有公共IP的生产服务器上,它显示为

Hi CP Experts

I am working on a webpage which consists of about 2000 to 3000 textboxes in gridviews. I fill in all the data and submit to database. The application works fine locally. But on the production server with public IP it gives me an error as

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


的错误
请帮助我解决问题.



Please help me resolve the issue.

推荐答案

您好,请在web.config
中使用它
Hi, Use this in web.config

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="2001" />



我已经使用它并解决了我的问题.



I have used it and solve my problem.


这篇关于部署到活动服务器时出错:由于对象的当前状态,操作无效.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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