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

I am getting this exception when trying to get data from the database.

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.

But we can solve this issue by increasing the value of MaxReceivedMessageSize in app.config.

My Question is if we have millions of data then what is the solution for this issue.


Thanks
Kishore
Posted

Break it down into chunks. It is only the individual message size limit that is being reached so, if for example you are transmitting a collection of data, send it in chunks rather than all at once.
 
Share this answer
 
Comments
KishoreUHG 9-May-13 6:49am    
Without making chuncks can we achieve this..
Yes, I agree with Solution 1 as Chunking would be the most preferrable solution rather than increasing the buffer (quota) limits of a Service because once quota is set then always that much big buffer would be allocated unnecessary even for small amount of data.

Chunking can be implemented, for example, by getting chunk of data as per the Page number selected in a Grid (Paging should be enabled).


I hope it was clear but if you get any queries please let me know.
 
Share this answer
 
Comments
KishoreUHG 9-May-13 6:49am    
Without making chuncks can we achieve this..
Mohammed Hameed 9-May-13 8:45am    
I think Almost impossible without chunks.

Anyhow let me do some R&D and will update you if I find any good alternative.

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