Operation is not valid due to the current state of the object.
2012-02-21 17:08
561 查看
今天遇到一个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中更改:
OK,问题搞定
狂晕啊,在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,问题搞定
相关文章推荐
- Error occurred in deployment step ‘Activate Features’: Operation is not valid due to the current state of the object
- 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
- 对象的当前状态使该操作无效 or SPListItem Update 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
- 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."
- “Operation is not valid due to the current state of the object.”
- Web API,Web Service SharePoint对象操作报Operation is not valid due to the current state of the object解决方案
- Error occurred in deployment step 'Add Solution': Operation is not valid due to the current state of the object.
- MOSS: SPListItem.Update() throws error Operation is not valid due to the current state of the object.
- 对象的当前状态使该操作无效 or SPListItem Update Operation is not valid due to the current state of the object
- 关于 error: Operation is not valid due to the current state of the object。
- Operation is not valid due to the current state of 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 - 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.
- Operation is not valid due to the current state of the object.