2
Vote

Too small MaxReceivedMessageSize

description

I kept getting error about MaxReceivedMessageSize being too small and tried various things to fix it. In the end I had to download the source and add this:
utorrentwebclient.cs / SetConnectionDetails:
        WebMessageEncodingBindingElement wmeBindingElement = new WebMessageEncodingBindingElement();
        wmeBindingElement.ReaderQuotas.MaxStringContentLength = Int32.MaxValue;
        wmeBindingElement.ContentTypeMapper = new JsonContentTypeMapper(); 
        CustomBinding uTorrentCustomBinding = new CustomBinding(
            wmeBindingElement,
            new HttpTransportBindingElement() { MaxReceivedMessageSize = int.MaxValue, ManualAddressing = true, AuthenticationScheme = 
 
System.Net.AuthenticationSchemes.Basic, Realm = "uTorrent", AllowCookies = false }
            );

comments