title: WCF Named pipe message size problems
body: <p>I am trying to get working a WCF named pipe communication between two processes on the same computer (on XP), but I am having trouble with "large" messages disappearing.  The messages that disappear contain a largish byte array and I have narrowed the failure down to when the array is around 16k in size.  Smaller than that and the message gets through.  Larger than that and the sender says it went fine but it is never received.  I have tried bumping up the buffer sizes on both sender and receiver as per this code for the server:</p>
  
  <pre><code>PipeServer pipeServer = new PipeServer();
  
  ServiceHost serviceHost = new ServiceHost(pipeServer, new Uri[] { new Uri(baseName) });
  
  NetNamedPipeBinding netNamedPipeBinding = new NetNamedPipeBinding();
  netNamedPipeBinding.MaxBufferPoolSize = 5000000;
  netNamedPipeBinding.MaxBufferSize = 500000;
  netNamedPipeBinding.MaxReceivedMessageSize = 500000;
  
  serviceHost.AddServiceEndpoint(typeof(ISSNPipeServer), netNamedPipeBinding, pipeName);
  </code></pre>
  
  <p>and this code for the client:</p>
  
  <pre><code>_callbacks = new PipeClientCallbacks();
  
  NetNamedPipeBinding netNamedPipeBinding = new NetNamedPipeBinding();
  netNamedPipeBinding.MaxBufferPoolSize = 5000000;
  netNamedPipeBinding.MaxBufferSize = 500000;
  netNamedPipeBinding.MaxReceivedMessageSize = 500000;
  
  _pipeFactory = new DuplexChannelFactory&lt;ISSNPipeServer&gt;(_callbacks,
                    netNamedPipeBinding,
                    new EndpointAddress(_targetPipe));
  
  _pipeProxy = _pipeFactory.CreateChannel();
  </code></pre>
  
  <p>I am eventually looking to transfer arrays in the 60KB size, but this is my first serious WCF experience and I have no idea even where to really start looking.</p>