Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 90:             ParentModel = DbHelperSQL.QueryDic(sqlstr);
Line 91: 
Line 92:             mid = ClassMidModel[ParentModel["MenuNo"]];
Line 93: 
Line 94:             //绑定菌种

Source File: d:\CICC2021\website\cicc\detail\Default.aspx.cs    Line: 92

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12689951
   cicc_detail_Default.bind() in d:\CICC2021\website\cicc\detail\Default.aspx.cs:92
   cicc_detail_Default.Page_Load(Object sender, EventArgs e) in d:\CICC2021\website\cicc\detail\Default.aspx.cs:78
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272