我们通过ws2007FederationHttpBinding绑定公开了WCF服务。我试图通过此服务访问100MB word文档并获得错误“无法分配268435456字节的托管内存缓冲区。可用内存量可能很低。 “ 任何有关解决此问题的帮助都非常感谢。
服务器端配置
<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>