11. November 2010 18:40
Tried sending an enitity over a WCF service... got this....
An error occurred while receiving the HTTP response to http://localhost:1337/MyService/service. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
So, to fix it I used the Microsoft Trace Viewer on the service side to get to this error:
The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
The problem was that I was using a using statement around my DataEntities context and the service was trying to call out to the context before serializing but it found that it was disposed of already. Removing the using{} clause fixed the problem.
7613ec70-12a0-48d7-92ff-b70b97cd8a86|0|.0