Wednesday, June 8, 2011

How to solve “The ObjectContext instance has been disposed and can no longer be used for operations that require a connection”

Convert your LINQ query result into array or iList:



                return query.ToList();
Or

                return query.ToArray();


           

3 comments: