estoy usando el marco de WCF Api Web 4.0 y estoy corriendo en el maxReceivedMessageSize ha superado los 65.000 error.C# WCF Web API 4 MaxReceivedMessageSize
He actualizado mi webconfig para que se vea así pero debido a que estoy utilizando el WCF Web Api creo que esto ya no se usa porque ya no estoy usando un webHttpEndpoint?
<standardEndpoints>
<webHttpEndpoint>
<!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name=""
helpEnabled="true"
automaticFormatSelectionEnabled="true"
maxReceivedMessageSize="4194304" />
</webHttpEndpoint>
Dónde puedo especificar MaxReceivedMessageSize en la nueva API Web WCF?
También he probado un CustomHttpOperationHandlerFactory en vano:
public class CustomHttpOperationHandlerFactory: HttpOperationHandlerFactory
{
protected override System.Collections.ObjectModel.Collection<HttpOperationHandler> OnCreateRequestHandlers(System.ServiceModel.Description.ServiceEndpoint endpoint, HttpOperationDescription operation)
{
var binding = (HttpBinding)endpoint.Binding;
binding.MaxReceivedMessageSize = Int32.MaxValue;
return base.OnCreateRequestHandlers(endpoint, operation);
}
}
no ha estado capaz de conseguir que esto funcione con mis servicios –
Hola nextgenneo, se las arregló para obtener su código que se ejecuta hasta ahora? – Dominik