Server Error in '/' Application.

Cannot find column Total.

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.IndexOutOfRangeException: Cannot find column Total.

Source Error:


Line 335:
Line 336:        //subTypes.DefaultView.RowFilter = "Total >= 10";
Line 337:        subTypes.DefaultView.Sort = "Total desc";
Line 338:        
Line 339:        while (subTypes.DefaultView.Count > maxResults)

Source File: f:\Inetpub\virtualserver1\sites\50ktrucks_mobile\search\default.aspx.cs    Line: 337

Stack Trace:


[IndexOutOfRangeException: Cannot find column Total.]
   System.Data.DataTable.ParseSortString(String sortString) +2813983
   System.Data.DataView.set_Sort(String value) +164
   InvSearchPage.LoadDistinctSubTypes(DataTable subTypes) in f:\Inetpub\virtualserver1\sites\50ktrucks_mobile\search\default.aspx.cs:337
   InvSearchPage.Page_Load() in f:\Inetpub\virtualserver1\sites\50ktrucks_mobile\search\default.aspx.cs:132
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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