I double checked my web.config,
Code Snippet
- <bindings>
- <basicHttpBinding>
- <binding
- name="BasicWithMtom"
- maxReceivedMessageSize="2621440"
- messageEncoding="Mtom">
- <readerQuotas maxArrayLength="2621440"/>
- </binding>
- </basicHttpBinding>
- </bindings>
but sizing was good enough.
The problem is, that the WCF service is hosted on IIS and you need to configure quotas on two separated places!!
Add this:
Code Snippet
- <system.webServer>
- <httpRuntime maxRequestLength="2621440" />
- </system.webServer>
Everything is working now..
Have a nice day!
I beleive your value is wrong, when i enter 2621440, there is an error saying that the value must be in between 0-2097151
OdpovedaťOdstrániť