19 March 2013

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

I got an error that says like this:

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

It's just a common error that we usually encounter when we forgot to return .ToList() because our Select function is wrapping entities in a using( ){ } statement.

Try this and booomm!, your problem is solved!

No comments:

Post a Comment