title: Transfer large data object via WCF client to WCF server
body: <p>I'm trying to transfer a large data object from a WinForms client via WCF.</p>
  
  <p>When the client tries to get the object from the server, the transfer succeeds; but
  when the client tries to send the object to the server, I get an error!!</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException
    webException, HttpWebRequest request, HttpAbortReason abortReason)<br>
    at
    System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan
    timeout)    at
    System.ServiceModel.Channels.RequestChannel.Request(Message message,
    TimeSpan timeout)    at
    System.ServiceModel.Channels.ClientReliableChannelBinder<code>1.RequestClientReliableChannelBinder</code>1.OnRequest(TRequestChannel
    channel, Message message, TimeSpan timeout, MaskingMode maskingMode)<br>
    at
    System.ServiceModel.Channels.ClientReliableChannelBinder<code>1.Request(Message
    message, TimeSpan timeout, MaskingMode maskingMode)    at
    System.ServiceModel.Channels.ClientReliableChannelBinder</code>1.Request(Message
    message, TimeSpan timeout)    at
    System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message
    message, TimeSpan timeout)    at
    System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message
    message, TimeSpan timeout)    at
    System.ServiceModel.Channels.ServiceChannel.Call(String action,
    Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
    Object[] outs, TimeSpan timeout)    at
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)    at
    System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)</p>
  </blockquote>
  
  <p>I try to add the behavior attribute <code>DataContractSerializer</code> and set it to max value. The transferring works only one way - from the server to the client! On the other side - from the client to the server it doesn't work!</p>
  
  <p>Thank you for your help.</p>