DbContext Disposed after first request when using Ninject's InRequestScope()
I am new to both EF and Ninject so forgive me if this does not make sense :) I have an MVC3 application with the Ninject and Ninject.Web.Common references. I am trying to inject a DbContext into my repositories. What I am seeing is that on the first request, everything works wonderfully but the subsequent requests return: System.InvalidOperationException: The operation cannot be completed because the DbContext has been disposed. at System.Data.Entity.Internal.LazyInternalContext.InitializeContext() at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression) at