Sending huge messages using WCF 4

Sending huge messages using WCF 4

You can send huge messages even upto 100MB using WCF 4. Here are the things you need to do in web.config in server side and / or app.config in client side:1. Under system.web section add this: 2. While defining binding configuration add maxReceivedMessageSize and maxBufferPoolSize attributes: Note: This binding configuration you need to set appropriately in client side too, i.e. set maxReceivedMessageSize, maxBufferPoolSize etc.3. Set dataContractSerializer in serviceBehaviors appropriately: 4. Now you can refer to this binding and this service behavior while defining your endpoint: There you go…..


About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist