Reputation: 3951
I am using a WCF service and a Silverlight Client sending data to the service.
I am sending data to the service in a For-Loop.
However, when the loop runs for the first time the data is being perfectly run, while in the next turn it is returning this error:
Microsoft JScript runtime error: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at WcfConsumption.SimpleSVC.SetXMLCompletedEventArgs.get_Result() at WcfConsumption.MainPage.proxy_SetXMLCompleted(Object sender, SetXMLCompletedEventArgs e) at WcfConsumption.SimpleSVC.SimpleWCFClient.OnSetXMLCompleted(Object state)
In the service, I am storing the received file in a XML file.
Upvotes: 0
Views: 440
Reputation: 16677
I would take a look at http://smehrozalam.wordpress.com/2009/01/29/retrieving-huge-amount-of-data-from-wcf-service-in-silverlight-application/.
Upvotes: 1
Reputation: 49974
To answer your follow up comment - check the values you have got set in your binding configuration on the server side. Pay attention to attributes like maxBufferSize
and maxReceivedMessageSize
on the binding, and attributes like maxStringContentLength
and maxBytesPerRead
on the readerQuotas
node of the binding.
Upvotes: 1