Problem with large WCF response

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Jul 15, 2008 at 1:07 PM
Hi, I have been using Service factory for a while now and I am really finding it usefull, thanx! but today I ran into a bit of a problem, when trying to retrieve a rather large response from the server I get a CommunicationException "The underlying connection was closed: The connection was closed unexpectedly." on the client.

More precisely, this occurs when I try to retrieve more than 2427 items in a List to the client. I tried changing closeTimeout, openTimeout, receiveTimeout, sendTimeout, maxBufferSize, maxReceivedMessageSize, and maxArrayLength in the server's(and in the client) binding to really large values, but with no success.

In another post a user was talking about changing the maximum number of items that can be serialized, but I can't seem to find that setting.

I suspect that I'm having this problem due to my very limited knowledge regarding WCF, can someone please give me some advice.



Jul 15, 2008 at 10:41 PM
Hi, your issue doesn't seem to be related with the Factory but rather with WCF itself. You will more likely get an accurate answer in WCF specific forums, such as

You may also find usefull the following links: