WCF method called twice
Posted
by Saurabh Lalwani
on Stack Overflow
See other posts from Stack Overflow
or by Saurabh Lalwani
Published on 2010-04-19T16:27:45Z
Indexed on
2010/04/19
18:43 UTC
Read the original article
Hit count: 428
Hi,
I have a web service which is returning data to the desktop application. The problem I am having is, when the web service returns small volume of data everything works fine but when the volume of data is large it throws the following exception:
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.
And when I am debugging the web service, I see that this particular method is called twice. It executes the return statement 1st time nothing happens, but when it does execute it for the second time the above mentioned exception is thrown in the desktop app.
I found similar posts before on stackoverflow but they did not solve my problem. Can anybody please tell me what's going on in here?
Thanks!
© Stack Overflow or respective owner