Ran into these problems a few times with the WCF errors, in which the buffer size was the issue:
Over at Mehroz's Experiments (http://smehrozalam.wordpress.com/2009/01/29/retrieving-huge-amount-of-data-from-wcf-service-in-silverlight-application/) he goes into good detail on solving this problem.
So in the Silverlight's ServiceReferences.ClientConfig we increase the buffer size.
- “The remote server returned an error: NotFound”
- "Unable to read data from the transport connection: The connection was closed"
- "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
Over at Mehroz's Experiments (http://smehrozalam.wordpress.com/2009/01/29/retrieving-huge-amount-of-data-from-wcf-service-in-silverlight-application/) he goes into good detail on solving this problem.
So in the Silverlight's ServiceReferences.ClientConfig we increase the buffer size.
Code Snippet
<binding name="BasicHttpBinding_IScientificDataService" closeTimeout="00:01:00"openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" textEncoding="utf-8" transferMode="Buffered">
<security mode="None"/>
binding>
<security mode="None"/>
binding>
| In the WCF's Web.config, we needed to increase the maxBufferSize and maxReceivedMessageSize to a larger number
|
No comments:
Post a Comment