I have a data layer that uses Entity Framework 5 to connects to Sql Server. I also have a LINQ query that gets some data. This query fails when used with Web API. I get the
This happens because lazy loading is being performed after your DbContext has been disposed.
DbContext
To resolve the issue you can disable lazy loading by doing this:
container.Configuration.LazyLoadingEnabled = false;