Server Error in '/' Application.

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

Source Error:


Line 67:             if (category.OperationStatus)
Line 68:             {
Line 69:                 categoryname = category.catelog_table.Rows[0]["CategoryName"].ToString();
Line 70:                 categoryimage = category.catelog_table.Rows[0]["CategoryImage"].ToString();
Line 71: 

Source File: c:\inetpub\vhosts\fitking.in\httpdocs\CategoryListing.aspx.cs    Line: 69

Stack Trace:


[ArgumentException: Column 'CategoryName' does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +7107668
   System.Data.DataRow.get_Item(String columnName) +17
   CategoryListing.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\fitking.in\httpdocs\CategoryListing.aspx.cs:69
   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