Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WebDataGrid and EntityDataSource Error
posted

I am getting this error while using entity data source. 
Server Error in '/' Application.

Unable to cast object of type 'System.Web.UI.WebControls.EntityDataSourceView' to type 'System.Web.UI.WebControls.QueryableDataSourceView'.

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.InvalidCastException: Unable to cast object of type 'System.Web.UI.WebControls.EntityDataSourceView' to type 'System.Web.UI.WebControls.QueryableDataSourceView'.

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:

[InvalidCastException: Unable to cast object of type 'System.Web.UI.WebControls.EntityDataSourceView' to type 'System.Web.UI.WebControls.QueryableDataSourceView'.]

   Infragistics.Web.UI.Framework.Data.QueryableDataSourceControlAdapter.AdjustSelectArguments(DataSourceSelectArguments arguments, DataSourceView dataSourceView) +85

   Infragistics.Web.UI.Framework.Data.DataSourceControlAdapter.InitSchema(DataSourceSelectArguments arguments) +116
   Infragistics.Web.UI.Framework.Data.DataSourceAdapter.Select(DataSourceSelectArguments arguments) +96
   Infragistics.Web.UI.Framework.Data.DataSourceObjectView.ExecuteSelect(DataSourceSelectArguments arguments) +72
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Infragistics.Web.UI.GridControls.WebDataGrid.DataBind() +835
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.EnsureDataBound() +86
   Infragistics.Web.UI.GridControls.WebDataGrid.EnsureDataBound() +186
   Infragistics.Web.UI.GridControls.WebDataGrid.CreateChildControls() +51
   System.Web.UI.Control.EnsureChildControls() +102
   Infragistics.Web.UI.GridControls.WebDataGrid.EnsureChildControls() +128
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496    

 

Parents Reply Children
No Data