Server Error in '/' Application.

Column 'PrimaryCategoryID' does not belong to table product.

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 'PrimaryCategoryID' does not belong to table product.

Source Error:


Line 96:                     if (Common.IsValidDataSet(dsDetails))
Line 97:                     {
Line 98:                          string Categoryid = dsDetails.Tables[0].Rows[0]["PrimaryCategoryID"].ToString();
Line 99:                          string PrimarySubCategoryid = dsDetails.Tables[0].Rows[0]["PrimarySubCategoryID"].ToString();
Line 100:                        string SubCategoryid = dsDetails.Tables[0].Rows[0]["SubCategoryids"].ToString();

Source File: c:\sites\fullscreen\ProductDetails.aspx.cs    Line: 98

Stack Trace:


[ArgumentException: Column 'PrimaryCategoryID' does not belong to table product.]
   System.Data.DataRow.GetDataColumn(String columnName) +7079556
   System.Data.DataRow.get_Item(String columnName) +17
   ProductDetails.checkQuerystring() in c:\sites\fullscreen\ProductDetails.aspx.cs:98
   ProductDetails.Page_Load(Object sender, EventArgs e) in c:\sites\fullscreen\ProductDetails.aspx.cs:45
   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.3429.0