Server Error in '/' Application.

Cannot find column RANK.

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 RANK.

Source Error:


Line 170:        if (searchResults.Rows.Count > 0)
Line 171:        {
Line 172:            searchResults.DefaultView.Sort = getSortList();
Line 173:        }
Line 174:

Source File: c:\Home\searchpress.com\www\AdvancedSearchMobile.aspx.cs    Line: 172

Stack Trace:


[IndexOutOfRangeException: Cannot find column RANK.]
   System.Data.DataTable.ParseSortString(String sortString) +2899709
   System.Data.DataView.set_Sort(String value) +158
   AdvancedSearchMobile.refreshList() in c:\Home\searchpress.com\www\AdvancedSearchMobile.aspx.cs:172
   AdvancedSearchMobile.Page_Load(Object sender, EventArgs e) in c:\Home\searchpress.com\www\AdvancedSearchMobile.aspx.cs:18
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   BasePage.OnLoad(EventArgs e) in c:\Home\searchpress.com\www\App_Code\BasePage.cs:114
   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.4057.0