We have a WCF service exposed over ws2007FederationHttpBinding binding. I am trying to access 100MB word document over this service and getting error as "Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. " Any help on this to resolve this issue is highly appreciated.
Server side configuration
<ws2007FederationHttpBinding>
<binding name="ws2007FederationHttpBinding" messageEncoding="Mtom" maxReceivedMessageSize="2147483647">
<security mode="Message">
<message negotiateServiceCredential="false">
<issuerMetadata address="https://abc.com/adfs/services/trust/mex" />
<issuer address="https://abc.com/adfs/services/trust/13/kerberosmixed" />
<claimTypeRequirements>
<add claimType="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" isOptional="true" />
<add claimType="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" isOptional="true" />
</claimTypeRequirements>
</message>
</security>
</binding>