webservice 调用时遇到的配额问题 解决办法 在客户端 app.config或者服务端 web,config 中添加 

maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" 

 

如下:

<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="LoginSoap" />
<binding name="InputStorageSoap" />
<binding name="PurchaseSoap" />
<!--<binding name="PublicServiceSoap" />-->
<binding name="PublicServiceSoap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" />


</basicHttpBinding>
<customBinding>

Copyright © 2024 霍先生的博客
Powered by .NET 9.0 on Kubernetes


 

< img src="" />