WCF服务4.0 —无法有效使用maxReceivedMessageSize

|| 我正在为内部的特殊应用程序使用框架4.0构建WCF服务。我有很多对象要从服务器传递到WPF客户端。如果数组足够小,则一切正常,但如果超出标准大小限制,则不会。我尝试使用参数maxReceivedMessageSize更改web.config,但是即使我将maxReceivedMessageSize的最大值设置为1000000000,最大大小限制错误仍然会显示原始值65536。这是现在的web.config:
<?xml version=\"1.0\"?>
          
<behaviors>
  <serviceBehaviors>
    <behavior name=\"commonBehavior\">
      <serviceMetadata httpGetEnabled=\"true\"/>
      <serviceDebug includeExceptionDetailInFaults=\"true\"/>
    </behavior>
  </serviceBehaviors>
</behaviors>

<bindings>
  <basicHttpBinding>
    <binding name=\"longConnections\" maxBufferSize =\"1000000000\" maxReceivedMessageSize=\"1000000000\"/>
  </basicHttpBinding>
</bindings>

<services>
  <service name =\"MiralisWebServices.HMI_Router\" behaviorConfiguration=\"commonBehavior\">
    <endpoint address=\"\" 
              binding=\"basicHttpBinding\" 
              bindingConfiguration=\"longConnections\" 
              contract=\"MiralisWebServices.IHMI_Router\"/>
  </service>
</services>

<serviceHostingEnvironment multipleSiteBindingsEnabled=\"true\" />
           我仍然是框架4.0的web.config的初学者。希望你们能帮上忙。 谢谢     
已邀请:
我认为客户端配置上也需要更改设置。     

要回复问题请先登录注册