Server Error in '/' Application.

The ContextTypeName property of LinqDataSource 'CatRepDS' must specify a data context type.

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.InvalidOperationException: The ContextTypeName property of LinqDataSource 'CatRepDS' must specify a data context type.

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:


[InvalidOperationException: The ContextTypeName property of LinqDataSource 'CatRepDS' must specify a data context type.]
   System.Web.UI.WebControls.LinqDataSourceView.get_ContextType() +275
   System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation) +1087
   System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect() +186
   System.Web.UI.WebControls.ContextDataSourceView.GetSource(QueryContext context) +30
   System.Web.UI.WebControls.LinqDataSourceView.GetSource(QueryContext context) +359
   System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +81
   System.Web.UI.WebControls.Repeater.GetData() +326
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +269
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   System.Web.UI.WebControls.Repeater.EnsureDataBound() +67
   System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +20
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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