我有一个中等大小和一个实例的天蓝色 Worker 角色 . 当使用visual studio将我的azure worker角色 Cloud 服务部署到azure时,我遇到了一个错误,上面写着“ 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. ” .
我尝试在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>
请帮我解决这个问题 .
提前致谢 .
1 回答
max *数字的最高允许数量是2147483647,而不是您列出的2147483648 . 您的配置应如下所示: