Operation is not valid due to the current state of the object.
来源:互联网 发布:巡视利剑观后感 知乎 编辑:程序博客网 时间:2024/05/16 01:24
今天遇到一个asp.net的草郁闷的问题,看下截图
狂晕啊,在google上狂搜了一下,好在已经有大侠也遇到过这个问题了,先看下别人的解决办法吧
Operation is not valid due to the current state of the object.这种类型的错误有很多,很多都是针对linq的,但是如果是下面的错误类型System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() +2692302
不过我的是+2419294,这个好像不是确定的吧。。。
那就是因为
因为上年12月29号那次微软发布的最后一次非正常更新程序引起的.在这次安全更新中对于asp.net单次的提交量做了一个最大量限制1000,出现这个异常正是因为页面提交量超过了1000这个限制.这个可以在web.config中更改:
<appSettings> <add key="aspnet:MaxHttpCollectionKeys" value="5000" /> </appSettings>
OK,问题搞定
- Operation is not valid due to the current state of the object.
- Operation is not valid due to the current state of the object.
- Operation is not valid due to the current state of the object.
- 'Operation is not valid due to the current state of the object' error during postback
- [转]error - Operation is not valid due to the current state of the object.
- bug:"Operation is not valid due to the current state of the object."
- bug:Operation is not valid due to the current state of the object.
- System.InvalidOperationException: Operation is not valid due to the current state of the object.
- InvalidOperationException: Operation is not valid due to the current state of the object
- Operation is not valid due to the current state of object 错误解决
- 由于MS11-100更新引起异常Operation is not valid due to the current state of the object. 异常
- JavaScriptSerializer 序列化时异常:Operation is not valid due to the current state of the object.
- 错误提示 the operation is not applicable to the current selection.Select a field which is not declared a
- 错误解决:Unable to add module to the current project as it is not of package
- Unable to add module to the current project as it is not of packaging type 'pom'
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
- 测试Delphi控件属性保存到dfm
- Converting text files between Unix and Windows
- TextBox只能输入数字(0..9)
- 限制程序多开
- CentOS 6.0(X64)下编译安装LNMP平台( Nginx1.0.10 + PHP5.3.8 + Mysql5.5.18 )
- Operation is not valid due to the current state of the object.
- sharepoint富文本里插入图片、视频
- OpenGL入门学习之十五——从“绘制一个立方体”来看OpenGL的进化过程
- 6410的GPIO使用
- C#调用axix2发布的Web服务(参数为int时,异常:未处理 System.Web.Services.Protocols.SoapException Message="unknown
- N-Patches
- mysql编码设置
- 浅谈线程的状态
- 面向对象软件设计原则(二) —— 软件设计的腐化