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.

Thanx

ss


Developer
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 http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=118&SiteID=1

You may also find usefull the following links:
http://neovolve.com/archive/2006/12/05/wcf-and-large-messages.aspx
http://nilangshah.wordpress.com/2007/03/01/the-underlying-connection-was-closed-unable-to-connect-to-the-remote-server/
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2914267&SiteID=1  

Thanks