Localhost vs Azure difference for MaxReceivedMessageSize



我有一项WCF服务,我可以在Localhost上进行开发和生产的Azure服务。在app.config中使用相同的config,它可以在localhost而不是azure上使用。

这是WCF配置:

<binding name="BasicHttpBinding_ICentralSales" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:15:00" receiveTimeout="00:15:00">
      <readerQuotas maxDepth="20000000" maxStringContentLength="2147483647" maxArrayLength="21504000" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
      <security mode="None" />
    </binding>

在我的WPF客户端中,我有此配置:

<binding name="BasicHttpBinding_ICentralSales" closeTimeout="00:10:00"
        openTimeout="00:10:00" sendTimeout="00:55:00" maxBufferSize="2147483647"
        maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" />

有人已经面对这个问题吗?

谢谢,马特

使用第二个Azure服务后,它可以正常工作...没有很好的答案,但对我有用

最新更新