开发者

configure console app to receive more than 65536 from wcf

开发者 https://www.devze.com 2022-12-30 17:29 出处:网络
Error Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

Error Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

svc.map

<?xml version="1.0" encoding="utf-8"?>
<ServiceReference>
    <ProxyGenerationParameters
        ServiceReferenceUri="http://d3w9501/SimpleWCF/SimpleWCF.svc"
        Name="svc"
        NotifyPropertyChange="False"
        UseObservableCollection="False">
    </ProxyGenerationParameters>
    <EndPoints>
        <EndPoint
            Address="http://d3w9501.americas.hpqcorp.net/SimpleWCF/SimpleWCF.svc"
            BindingConfiguration="BasicHttpBinding_ISimpleWCF"
            Contract="TestSimpleWCF.svc.ISimpleWCF"
            >
        </EndPoint>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_ISimpleWCF" maxBufferSize="21474836开发者_运维技巧47"
            maxReceivedMessageSize="2147483647">
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>    
    </EndPoints>
</ServiceReference>


you need to set MaxReceivedMessageSize in app.config to higher value.

Like here : alt text http://geekswithblogs.net/images/geekswithblogs_net/niemguy/7378/o_02%20-%20Properties%20BasicHttpBinding.jpg

0

精彩评论

暂无评论...
验证码 换一张
取 消