当我上传超过16kb时,连接在wpf应用程序中被中止 客户端App.Config文件
答案 0 :(得分:1)
您可以尝试设置更大的最大邮件大小(这可以应用于服务和客户端):
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="GenericBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>