title: Remove size limit of WCF-Service answers
body: <p>I have created an WCF-Service that runs an operation on a W2008-Server and returns a datastructure as a result. Problem is, that this result can be larger, than the standard service configuration seems to accept. So I tried to increase (or remove) this maximum size, but it seems, I didn't found the correct properties.</p>
  
  <p>In the App.config of the WCF, I changed the following values of my basicHttpBinding:</p>
  
  <ul>
  <li>MaxBufferPoolSize -> 6553600</li>
  <li>MaxBufferSize -> 6553600</li>
  <li>MaxReceiveMessageSize -> 6553600</li>
  </ul>
  
  <p>ReaderQuotas:</p>
  
  <ul>
  <li>MaxArrayLenght -> 0</li>
  <li>MaxBytesPerRead -> 0</li>
  <li>MaxDepth -> 0</li>
  <li>MaxNameTableCharCount -> 0</li>
  <li>MaxStringContentLength -> 0</li>
  </ul>
  
  <p>I then start the WCF-Testclient to call the service. I make sure, that the values for the properties of the basicHttpBinding are equal to the ones in the configuration. When I call the service in a way, that the result set is rather small, everything works fine. But when this size is increased, I eventually get the error (translated from german):</p>
  
  <blockquote>
    <p>Error while receiving http answer for <a href="http://localhost:8731/Design_Time_Addresses/DiscoDataSource/Service1/" rel="nofollow noreferrer">http://localhost:8731/Design_Time_Addresses/DiscoDataSource/Service1/</a>. Possible reasons: Endpointbinding doesn't use the HTTP protocol or the HTTP-requestcontext was canceled by the server.</p>
    
    <p>Server stack trace: </p>
    
    <p>at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)</p>
    
    <p>at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)</p>
    
    <p>at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)</p>
    
    <p>at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)</p>
    
    <p>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)</p>
    
    <p>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)</p>
    
    <p>at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)</p>
    
    <p>at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p>
  </blockquote>
  
  <p>I would like to configure the service to return the result regardless of the size. Anybody knows, where I need to change the configuration?</p>
  
  <p>Thanks in advance,
  Frank</p>