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 61:         banner = new huahaocms.com.BLL.Web_Content().GetModelList(" MenuNo='e1d2f833eac649bba919c1bfa6803b22' and Language = 'EN' and RECORDSTATUS='ACTIVE' order by IsTop desc,SortId desc,ContentID desc").FirstOrDefault();
Line 62: 
Line 63:         WCDModel = WCDBLL.GetModelList(" ContentNO='" + dic["ContentNO"] + "' and RECORDSTATUS='ACTIVE' order by ContentExtendedID desc").FirstOrDefault();
Line 64:        
Line 65: 

Source File: d:\website\EN\brands\Default.aspx.cs    Line: 63

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +52
   product_brands_Default.Bind() in d:\website\EN\brands\Default.aspx.cs:63
   product_brands_Default.Page_Load(Object sender, EventArgs e) in d:\website\EN\brands\Default.aspx.cs:54
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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