Click here to Skip to main content
15,063,085 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is their any way to change the maximum message size in WCF ??
Posted
Comments
[no name] 2-Jun-15 7:52am
   
http://youku.io/questions/480533/setting-max-message-and-buffer-size-for-wcf-webhttp

1 solution

change your binding configuration in webconfig where you have your WCF endpoints and binding configuration
like below

<basicHttpBinding>

< binding name="yourbindingname" closeTimeout="00:10:00"
openTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" />

</basicHttpBinding>

<client>
< endpoint address="http://localhost/yourservice"
binding="basicHttpBinding" bindingConfiguration="yourbindingname"
contract="yourbindingname.IService" name="yourbindingname" />
</client>
   

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