Azure WCF Webrole error: The remote server returned an unexpected response: (413) Request Entity Too Large

十年热恋 提交于 2019-12-06 12:53:45

In the system.serviceModel of the web.config of the (Windows Azure) WCF webrole webservice you can add basicHTTPBinding. The mistake I made was trying to add a name, but without name it appears to be a default. Now it works like a charm. Hope someone else runs into this and find his answer here. It took me four hours.

<bindings>
  <basicHttpBinding>
    <binding maxReceivedMessageSize="2147483647"  maxBufferSize="2147483647" transferMode="Streamed"  >
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
      <security mode="None">
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!