Server Error in '/' Application.

Column 'ContID' does not belong to 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 'ContID' does not belong to table .

Source Error:


Line 58:             for (int i = 0; i < dtb.Rows.Count; i++)
Line 59:             {
Line 60:                 string ContRoot = StartUp.GetData("tblContent", "ContRoot", "ContRoot=" + dtb.Rows[i]["ContID"].ToString());
Line 61: 
Line 62:                 if (dtb.Rows[i]["ContID"].ToString() == "1")

Source File: e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\SiteMaster.master.cs    Line: 60

Stack Trace:


[ArgumentException: Column 'ContID' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +6035112
   System.Data.DataRow.get_Item(String columnName) +14
   SiteMaster.showmenu() in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\SiteMaster.master.cs:60
   SiteMaster.Page_Load(Object sender, EventArgs e) in e:\hostingspaces\vithya\nac.org.kh\wwwroot\kh\SiteMaster.master.cs:41
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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