Server Error in '/' Application.

Cannot access a disposed object.
Object name: 'DataContext accessed after Dispose.'.

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.ObjectDisposedException: Cannot access a disposed object.
Object name: 'DataContext accessed after Dispose.'.

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:


[ObjectDisposedException: Cannot access a disposed object.
Object name: 'DataContext accessed after Dispose.'.]
   System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +1008967
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +430
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +73
   System.Data.Linq.Provider.BindingList.Create(DataContext context, IEnumerable`1 sequence) +114
   System.Data.Linq.DataQuery`1.System.ComponentModel.IListSource.GetList() +24
   System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource, String dataMember) +11601219
   System.Web.UI.WebControls.ReadOnlyDataSource.System.Web.UI.IDataSource.GetView(String viewName) +55
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +212
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +28
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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