K
KBS Tours Development
Hi All,
I've asked this before but no one believed me and everyone told me that I am
doing something wrong.
But here is the evidence happened on my local development box.
Can someone explain this now?
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Server Error in '/' Application.
Find finds a row based on a Sort order, and no Sort order is specified.
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: Find finds a row based on a
Sort order, and no Sort order is specified.
Source Error:
Line 100: DataView filteredResults = Destionations.DefaultView;//
..Select("CountryCode = '" + countryCode + "'").
Line 101: filteredResults.Sort = "CountryCode ASC";
Line 102: return filteredResults.FindRows(countryCode);
Line 103:
Line 104: //Table.Select has a problem, DataView also has another
problem
Source File:
C:\KBS\Components\SevDerKutuphaneleri\Controllers\LocationController.cs
Line: 102
Stack Trace:
[ArgumentException: Find finds a row based on a Sort order, and no Sort
order is specified.]
System.Data.Index.FindNodeByKeys(Object[] originalKey) +456
System.Data.Index.FindRecords(Object[] key) +36
System.Data.DataView.FindRows(Object[] key) +100
KBSLibrary.Controllers.LocationController.GetCountryDestinations(String
countryCode) in
C:\KBS\Components\SevDerKutuphaneleri\Controllers\LocationController.cs:102
SearchBoxAll.LoadDestinationDropDown() in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:93
SearchBoxAll.LoadDropDownsByStartingWithCountry() in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:87
SearchBoxAll.Page_Load(Object sender, EventArgs e) in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:23
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +58
System.Web.UI.Control.OnLoad(EventArgs e) +127
System.Web.UI.Control.LoadRecursive() +101
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2588
[PageLoadException: Find finds a row based on a Sort order, and no Sort
order is specified.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception
exc, String URL) +474
System.Web.UI.TemplateControl.OnError(EventArgs e) +114
System.Web.UI.Page.HandleError(Exception e) +105
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5311
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +399
System.Web.UI.Page.ProcessRequest() +105
System.Web.UI.Page.ProcessRequest(HttpContext context) +292
ASP.default_aspx.ProcessRequest(HttpContext context) +59
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+610
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +177
Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET
Version:2.0.50727.833
I've asked this before but no one believed me and everyone told me that I am
doing something wrong.
But here is the evidence happened on my local development box.
Can someone explain this now?
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Server Error in '/' Application.
Find finds a row based on a Sort order, and no Sort order is specified.
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: Find finds a row based on a
Sort order, and no Sort order is specified.
Source Error:
Line 100: DataView filteredResults = Destionations.DefaultView;//
..Select("CountryCode = '" + countryCode + "'").
Line 101: filteredResults.Sort = "CountryCode ASC";
Line 102: return filteredResults.FindRows(countryCode);
Line 103:
Line 104: //Table.Select has a problem, DataView also has another
problem
Source File:
C:\KBS\Components\SevDerKutuphaneleri\Controllers\LocationController.cs
Line: 102
Stack Trace:
[ArgumentException: Find finds a row based on a Sort order, and no Sort
order is specified.]
System.Data.Index.FindNodeByKeys(Object[] originalKey) +456
System.Data.Index.FindRecords(Object[] key) +36
System.Data.DataView.FindRows(Object[] key) +100
KBSLibrary.Controllers.LocationController.GetCountryDestinations(String
countryCode) in
C:\KBS\Components\SevDerKutuphaneleri\Controllers\LocationController.cs:102
SearchBoxAll.LoadDestinationDropDown() in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:93
SearchBoxAll.LoadDropDownsByStartingWithCountry() in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:87
SearchBoxAll.Page_Load(Object sender, EventArgs e) in
c:\KBS\WebSite\DesktopModules\KBS\SearchBoxAll.ascx.cs:23
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +58
System.Web.UI.Control.OnLoad(EventArgs e) +127
System.Web.UI.Control.LoadRecursive() +101
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Control.LoadRecursive() +211
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2588
[PageLoadException: Find finds a row based on a Sort order, and no Sort
order is specified.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception
exc, String URL) +474
System.Web.UI.TemplateControl.OnError(EventArgs e) +114
System.Web.UI.Page.HandleError(Exception e) +105
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5311
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +399
System.Web.UI.Page.ProcessRequest() +105
System.Web.UI.Page.ProcessRequest(HttpContext context) +292
ASP.default_aspx.ProcessRequest(HttpContext context) +59
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+610
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +177
Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET
Version:2.0.50727.833