我正在使用WCF将数据从一个应用程序传递到另一个应用程序。在执行期间,我收到System.ServiceModel.Dispatcher.NetDispatcherFaultException
。在它内部,.NET声称应该增加MaxStringContentLength(默认值为8192)。
如何增加命名管道的MaxStringContentLength?
答案 0 :(得分:2)
这是绑定配置下的设置
<bindings>
<netNamedPipeBinding>
<binding name="binding1" ...>
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>