Server Error in '/' Application.

Column 'icid' does not belong to table Table.

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.ArgumentException: Column 'icid' does not belong to table Table.

Source Error:


Line 33:         for (int i = 0; i < dt.Rows.Count; i++)
Line 34:         {
Line 35:             if (Submenu(dt.Rows[i]["icid"].ToString()).Length>0)
Line 36:             {
Line 37:                 str += "<li class=' menu-item menu-item-type-post_type menu-item-object-page " + checkselected(dt.Rows[i]["vdesc"].ToString()) + "'><a  href='" + dt.Rows[i]["vdesc"].ToString() + "'>" + dt.Rows[i]["vname"].ToString() + "</a>";

Source File: c:\Hosting\ducthienoto.com\wwwroot\home\menu\menu.ascx.cs    Line: 35

Stack Trace:


[ArgumentException: Column 'icid' does not belong to table Table.]
   System.Data.DataRow.GetDataColumn(String columnName) +7107668
   System.Data.DataRow.get_Item(String columnName) +17
   home_menu_menu.bindmenu() in c:\Hosting\ducthienoto.com\wwwroot\home\menu\menu.ascx.cs:35
   home_menu_menu.Page_Load(Object sender, EventArgs e) in c:\Hosting\ducthienoto.com\wwwroot\home\menu\menu.ascx.cs:23
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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