Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a WCF rest service which is returning complex data in the json format. It is throwing below mentioned exception:

the underlying connection was closed the connection was closed unexpectedly.

When I debug, I found that it is returning data but on the client side I am getting above mentioned issue.

Packet size is not the issue because one of its method is returning bigger packet than this methods. I am getting this issue only with a particular method. Other methods are working fine and returning much bigger data in the json format.
Posted
Comments
Kornfeld Eliyahu Peter 14-Aug-14 4:19am    
Check the data you get on client. It may be corrupted in such way that the client decides to close the connection?
Kumar_Jitendra 14-Aug-14 4:51am    
Thanks for reply. Can you tell me how can i check data on client.

On Service, before returning data I am able to convert the object into json.

Thanks
Kornfeld Eliyahu Peter 14-Aug-14 4:53am    
Debug...
Kumar_Jitendra 14-Aug-14 5:06am    
I mean, on client side, I am getting error.

On service side I am able to convert object into Json so I believe, data should be in the correct format.
Kornfeld Eliyahu Peter 14-Aug-14 5:09am    
As you debug your server, you can debug your client too, however I can't tell more as I do not know about your client nothing...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900