Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I'm trying to send large amount of data from wcf web service using List<>
but i'm getting this error.
Plz help me.

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.

and here is my code for MaxReceivedMessageSize:
XML
<binding name="MyTcpBinding" maxReceivedMessageSize="2147483647" receiveTimeout="00:30" sendTimeout="00:30">
         <readerQuotas maxStringContentLength="8192" maxArrayLength="20971520" />
       </binding>
Posted
Updated 30-Jul-13 1:15am
v3
Comments
[no name] 30-Jul-13 10:05am    
Have you tried to optimize your code? If you want to send more then one data then use the entity type object or class object not a list element. that will take a lesser time to send the data in a minimum time.

1 solution

 
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