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…..

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts