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

It sounds like you have some lazily loaded relationship properties that have not yet loaded (which has an associated “n+1” performance concern). You can try eager loading to see if this helps; otherwise, explicitly load the data for each item in the list, before you close the object-context.

Leave a Comment

tech