【发布时间】:2015-09-08 09:36:55
【问题描述】:
我有一个中等规模的 azure worker 角色和一个实例。在部署我的 azure worker 时,我遇到了一个错误,提示“已超出传入消息的最大消息大小配额 (1048576)。要增加配额,请在适当的绑定元素上使用 MaxReceivedMessageSize 属性。”使用 Visual Studio 将角色云服务转为天蓝色。
我尝试像这样在 app.config 中增加 maxReceivedMessageSize 属性,但没有奏效:
<bindings>
<basicHttpBinding>
<binding name="basicHttp" allowCookies="true"
maxReceivedMessageSize="2147483648"
maxBufferSize="2147483648"
maxBufferPoolSize="2147483648">
<readerQuotas maxDepth="32"
maxArrayLength="2147483648"
maxStringContentLength="2147483648"/>
</binding>
</basicHttpBinding>
</bindings>
请帮我解决这个问题。
提前致谢。
【问题讨论】:
标签: c# asp.net azure azure-worker-roles azure-cloud-services