问题描述
我有一个蓝色的工作者角色是中等大小和一个实例。我遇到它说一个错误的最大邮件大小配额传入消息(1048576)已经被超过。为了增加配额,请使用相应绑定元素上MaxReceivedMessageSize属性。部署我蔚蓝的工人时,角色的云服务天青使用Visual Studio的。
I have an azure worker role which is medium size and one instance. I encountered an error which says "The maximum message size quota for incoming messages (1048576) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." when deploying my azure worker role cloud service to azure using visual studio.
我试图增加在这样的app.config maxReceivedMessageSize属性,但它没有工作:
I tried to increase maxReceivedMessageSize property in app.config like this but it didn't work:
<bindings>
<basicHttpBinding>
<binding name="basicHttp" allowCookies="true"
maxReceivedMessageSize="2147483648"
maxBufferSize="2147483648"
maxBufferPoolSize="2147483648">
<readerQuotas maxDepth="32"
maxArrayLength="2147483648"
maxStringContentLength="2147483648"/>
</binding>
</basicHttpBinding>
</bindings>
请帮我解决这个问题。
先谢谢了。
推荐答案
为最大*号的最高permittable号码是2147483647,2147483648没有你所上市。你的配置应该是这样的:
The highest permittable number for the max* numbers is 2147483647, not 2147483648 which you have listed. Your config should look like this:
<bindings>
<basicHttpBinding>
<binding name="basicHttp" allowCookies="true"
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647">
<readerQuotas maxDepth="32"
maxArrayLength="2147483647"
maxStringContentLength="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
这篇关于如何增加MaxReceivedMessageSize为蔚蓝的辅助角色的部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!