title: Error in .net: Allowed memory size of 157286400 bytes exhausted (tried to allocate 10528769 bytes)
body: <p>I am trying to use a web method from one of our third party webservices into my vb.net code to retrieve information using their .net API.</p>
  
  <p>When I try</p>
  
  <pre><code>Dim records() As WEB_API.DBRecord
  records = api.GetView(guid, viewid, dbid, offset, 10000)
  </code></pre>
  
  <p>I get error from the webservice(SOAP) saying:</p>
  
  <pre><code>System.Web.Services.Protocols.SoapHeaderException: Allowed memory size of 157286400 bytes 
     exhausted (tried to allocate 10528769 bytes)
     at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage 
       message, WebResponse response, Stream responseStream, Boolean asyncCall)
     at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
     at comp.WEB_API.XYZ.GetView(String db_guid, Int32 view_db, Int32 space_id, Int32 offset, Int32 count)
  </code></pre>
  
  <p>Is there anything I need to fix from my end? what do you think is the cause.
  let me know how I can resolve this issue.
  Thanks.</p>