Getting this error when calling my WCF service. The service is streaming a 150mb file. It usually works the first time I call it, even the second, then I start getting the error.

error message : Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low.

I don't event know exactly where that number (268435456) comes from. Here is my config.

Code:
<?xml version="1.0"?>
<configuration>
    <system.serviceModel>
      <client>
        <endpoint address="http://localhost:53761/StreamService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IStreamService"
          contract="StreamService.IStreamService" name="BasicHttpBinding_IStreamService" />
        <endpoint address="http://localhost:53761/ProgressService.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProgressService"
          contract="ProgressService.IProgressService" name="BasicHttpBinding_IProgressService" />
      </client>
      <bindings>
        <basicHttpBinding>
          <binding name="BasicHttpBinding_IStreamService" openTimeout="00:01:00"
            receiveTimeout="00:10:00" sendTimeout="00:01:00" maxBufferSize="2147483647"
            maxReceivedMessageSize="2147483647" transferMode="StreamedResponse">
            <security mode="TransportCredentialOnly" />
          </binding>
          <binding name="BasicHttpBinding_IProgressService" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
            maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
            useDefaultWebProxy="true">
            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            <security mode="None">
              <transport clientCredentialType="None" proxyCredentialType="None"
                realm="" />
              <message clientCredentialType="UserName" algorithmSuite="Default" />
            </security>
          </binding>
        </basicHttpBinding>
      </bindings>        
    </system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>
Searched on google but found mostly nothing
Thanks for any help.