91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ASP.NET4.0錯誤:Operation is not valid due to the current state of the object

發布時間:2020-07-12 16:01:08 來源:網絡 閱讀:2843 作者:achievo_peter 欄目:編程語言

之前,客戶向我們投訴在其站點老遇到這個問題:

ASP.NET4.0錯誤:Operation is not valid due to the current state of the object 

這是我第一次遇到這個奇怪的錯誤提示信息,幸好客戶提供了錯誤日志。

 

2012-08-02 10:47:15,860 [22] ERROR Logger - Operation is not valid due to the current state of the object.

SOURCE: System.Web

TARGETSITE: Void ThrowIfMaxHttpCollectionKeysExceeded()

STACKTRACE: at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()

at System.Web.HttpValueCollection.Add(HttpCookieCollection c)

at System.Web.HttpRequest.FillInParamsCollection()

at System.Web.HttpRequest.GetParams()

at System.Web.HttpRequest.get_Params()

at Accela.ACA.Web.Component.AppSpecInfoTableEdit.GetValueFromHttp(Boolean isAdding, Int32 controlloop, String suffix, String prefix, Int32 groupIndex)

at Accela.ACA.Web.Component.AppSpecInfoTableEdit.GetControlValue(Int32 groupIndex, String prefix, Int32 itemIndex, Int32 rowIndex, String suffix, Boolean isGetRealRowIndex)

at Accela.ACA.Web.Component.AppSpecInfoTableEdit.ShowAppSpecInfoGroup(AppSpecificTableModel4WS appInfoTable, Int32 groupIndex, PlaceHolder phCurrentAppInfoTable, String prefix)

at Accela.ACA.Web.Component.AppSpecInfoTableEdit.Repeater_ItemDataBound(Object sender, DataListItemEventArgs e)

at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e)

at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)

at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource)

at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)

at System.Web.UI.WebControls.BaseDataList.DataBind()

at Accela.ACA.Web.Component.AppSpecInfoTableEdit.Display()

at Accela.ACA.Web.Cap.CapEdit.InitAppSpecTable(String value, CapModel4WS capModel)

at Accela.ACA.Web.Cap.CapEdit.LoadPage(PageModel customPage, CapModel4WS capModel)

at Accela.ACA.Web.Cap.CapEdit.BindPageflowGroup(CapModel4WS capModel4WS, PageFlowGroupModel pageflowGroup)

at Accela.ACA.Web.Cap.CapEdit.OnInit(EventArgs e)

at System.Web.UI.Control.InitRecursive(Control namingContainer)

at System.Web.UI.Page.Proce***equestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

從這段日志去分析,好像是ASP.NET Runtime有意拋出來,也就是說我們應該是違反了.NET Framework的某些規則才導致成這樣。后來我就在網上搜索,找到了根本原因:這是由于NET Framework V4.0在2011年12月29號發布的一個更新引起的,具體的詳細情況和解決思路,請參考下面這篇文章:

ASP.NET MS11-100: how can I change the limit on the maximum number of posted form values?

http://stackoverflow.com/questions/8684049/asp-net-ms11-100-how-can-i-change-the-limit-on-the-maximum-number-of-posted-for

 

解決思路:

<appSettings>

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

</appSettings>

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

建昌县| 黄平县| 南皮县| 盐边县| 焉耆| 隆安县| 伊吾县| 东兰县| 老河口市| 枣强县| 商水县| 鹤庆县| 尼勒克县| 砚山县| 常山县| 正宁县| 介休市| 香格里拉县| 柳州市| 蓬莱市| 墨竹工卡县| 洪洞县| 浦城县| 晋江市| 饶阳县| 贺兰县| 宿松县| 安图县| 都江堰市| 南漳县| 西城区| 阿城市| 铁岭市| 调兵山市| 赞皇县| 丹寨县| 通渭县| 黔南| 讷河市| 桦南县| 泰州市|