当前位置: 代码迷 >> Web Service >> 已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素下的 MaxReceivedMessageSize 属性
  详细解决方案

已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素下的 MaxReceivedMessageSize 属性

热度:541   发布时间:2016-05-02 02:37:54.0
已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
本帖最后由 longriver2 于 2012-01-27 21:49:22 编辑
vs2010 + sql2005  报错如题,查看配置文件如下,请教高手为什么?救命啊



服务端web.config

 <system.serviceModel>
    <client />
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
                <binding name="DBService" 
                 maxBufferPoolSize="2147483647" 
                 maxReceivedMessageSize="2147483647" 
                 maxBufferSize="2147483647">
          <readerQuotas maxArrayLength="2147483647" 
                        maxBytesPerRead="2147483647" 
                        maxDepth="2147483647" 
                        maxNameTableCharCount="2147483647" 
                        maxStringContentLength="2147483647"/>

        </binding>
      </basicHttpBinding>
    </bindings>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
    <services>
      <service name="第二版.DBService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="DBService"
            contract="第二版.DBService" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
  </system.serviceModel>


客户端 ServiceReferences.ClientConfig

<configuration>
   
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_DBService" maxBufferSize="2147483647"
  相关解决方案