Server Error in '/' Application.

The operation cannot be completed because the DbContext has been disposed.

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 operation cannot be completed because the DbContext has been disposed.

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 operation cannot be completed because the DbContext has been disposed.]
   System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +1051
   System.Data.Entity.Internal.Linq.InternalQuery`1.GetEnumerator() +43
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +446
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +80
   DAL.NavCategoryResponsitory.GetEntities(ISpecification`1 specification, IOrderBuilder`1 sortorder, PageHelper pageHelper, Boolean getFullText) +1680
   Web.Detail_Year.GetChildHtml(Int32 categoryId) +698
   Web.Detail_Year.BindNav(Int32 articleId) +1295
   Web.Detail_Year.Page_Load(Object sender, EventArgs e) +236
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


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