错误讯息: 已超出传入邮件的最大邮件大小限额(65536)。要增加配额,请在相应的绑定元素上使用MaxReceivedMessageSize属性。
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="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
</EndPoints>
</ServiceReference>
答案 0 :(得分:0)
您需要将app.config中的MaxReceivedMessageSize设置为更高的值。