I have small JSON WCF service. Few days ago I decided to change something in one of my functions, and along with other changes I've changed the return type of the function from
ListJSONResponse<MyClass>
to
ListJSONResponse<Object>
in hope that I could return anonymous objects. Unfortunately, after I did that I couldn't get response from my service - I always get HTTP Error 101: The connection was reset.
I've also tried just changing return type and leaving the rest of the function in it's "original" state. Unfortunately the same error happens so I'm pretty sure that using Object
in return type is causing the error.
Any ideas what can I do to fix it?