Click here to Skip to main content
15,881,866 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I try to send the List<object> Data(80 columns,100 rows of Data) as parameter to WCF service.I am getting the ERROR the remote server returned an error.

If i send one row,it work fine but more than 10 rows i get the error
The ERROR IS "the remote server returned an error"
Posted

Hi,

Very well you can do all those things which are mentioned by Arun and others.

But i would recommend you to look back to your design(Is it really needed that much amount of data?) because it adds lot of pressure in terms of cpu processing time and network latency.

In addition to this, i would also want to check what type of data is this. reason behind this question - if it is of image/audio then we can think of Streaming over Mtom encoding - which will be really good for the server health.

I hope this helps!.

Regards,
-Vinayak
 
Share this answer
 
Comments
vinayakshenoy2000@gmail.com 6-Aug-10 4:55am    
Reason for my vote of 5
Yes, it makes sense
You can increase maxReceivedMessageSize in both client and server configuration.

wcf-how-to-increase-message-size-quota[^]
 
Share this answer
 
v2
This is my ServiceReferences.ClientConfig code where can i change?
for increase the buffer...


XML
<configuration>
    <system.serviceModel>
        <bindings>
            <customBinding>
                <binding name="CustomBinding_Service" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="10:00:00">
                    <binaryMessageEncoding />
                    <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"  />
                </binding>


            </customBinding>



        </bindings>
        <client>
            <endpoint address="http://localhost:3959/SilverlightApplication2.Web/Service.svc"
                binding="customBinding" bindingConfiguration="CustomBinding_Service"
                contract="ServiceReference1.Service" name="CustomBinding_Service" />
        </client>
    </system.serviceModel>
</configuration>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900