Server Error in '/' Application.

The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.

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: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.

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: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.]
   System.Data.Entity.Core.Objects.ObjectContext.ReleaseConnection() +111
   System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.Finally() +60
   System.Data.Entity.Core.Common.Internal.Materialization.ObjectQueryNestedEnumerator.Dispose() +35
   System.Data.Entity.Internal.LazyEnumerator`1.Dispose() +15
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +286
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +61
   Blogerky.BusinessModel.DAL.EditorArticlesRepository.GetManyPublished(Int32 lastId, Int32 pageSize, Int32 categoryId, String text) in C:\Users\Jan\Projects\Blogerky.cz\Solutions\Blogerky\Blogerky.BusinessModel\DAL\EditorArticlesRepository.cs:51
   Blogerky.BusinessModel.BLL.Datasets.EditorArticlesDS.GetManyPublished(Int32 number) in C:\Users\Jan\Projects\Blogerky.cz\Solutions\Blogerky\Blogerky.BusinessModel\BLL\Datasets\EditorArticlesDS.cs:31
   Blogerky.Web.Controls.PopularMenuUC.BindData() in C:\Users\Jan\Projects\Blogerky.cz\Solutions\Blogerky\Blogerky.Web\Controls\PopularMenuUC.ascx.cs:28
   Blogerky.Web.Controls.PopularMenuUC.Page_Load(Object sender, EventArgs e) in C:\Users\Jan\Projects\Blogerky.cz\Solutions\Blogerky\Blogerky.Web\Controls\PopularMenuUC.ascx.cs:19
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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