Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   LiPoker.Web.Controls.PlayerRankingControl.SqlDataSourceRankingResults_Selecting(Object sender, SqlDataSourceSelectingEventArgs e) in D:\Repositories\kholdem-web\src\executables\LiPokerWebApp\Controls\PlayerRankingControl.ascx.cs:36
   System.Web.UI.WebControls.SqlDataSourceView.OnSelecting(SqlDataSourceSelectingEventArgs e) +99
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +663
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   DevExpress.Web.Internal.DataHelper.PerformSelect() +203
   DevExpress.Web.Internal.GridDataHelper.PerformSelect() +285
   DevExpress.Web.Internal.DataContainer.PerformSelect() +136
   DevExpress.Web.ASPxDataWebControlBase.DataBindCore() +13
   DevExpress.Web.ASPxDataWebControlBase.DataBindInternal() +110
   DevExpress.Web.ASPxWebControl.DataBind() +46
   DevExpress.Web.Internal.DataHelperBase.EnsureDataBound(Boolean ensureChildControls) +68
   DevExpress.Web.Internal.DataContainer.EnsureDataBound() +142
   DevExpress.Web.ASPxDataWebControlBase.OnPreRender(EventArgs e) +21
   System.Web.UI.Control.PreRenderRecursiveInternal() +166
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Control.PreRenderRecursiveInternal() +236
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4714


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