我正在使用WCF将数据从一个应用程序传递到另一个应用程序。在执行过程中,我接收到System.ServiceModel.Dispatcher.NetDispatcherFaultException。在它内部,.NET声称应该增加MaxStringContentLength (默认值是8192)。
如何增加命名管道的MaxStringContentLength?
发布于 2012-04-18 00:17:10
它是绑定配置下的一个设置
<bindings>
<netNamedPipeBinding>
<binding name="binding1" ...>
<readerQuotas
maxDepth="2147483647"
maxStringContentLength="2147483646"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>https://stackoverflow.com/questions/10194694
复制相似问题