当我上传超过16kb时,wpf应用程序中的连接被中止客户端应用程序配置文件
您可以尝试设置更大的最大消息大小(这可以应用于服务和客户端):
<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>