+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ReportViewer increase MaxStringContentLength

ReportViewer increase MaxStringContentLength

2 posts, 0 answered
  1. jose
    jose avatar
    1 posts
    Registered:
    15 Jan 2014
    15 Jan 2014
    Link to this post
    Hello,

    I am new with Telerik and its controls. So, when I tried to get  report with huge data I got this response from server:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</faultcode><faultstring xml:lang="es-PE">El formateador inició una excepción al intentar deserializar el mensaje: Error al intentar deserializar el parámetro Telerik.ReportService:parameters. El mensaje de InnerException era 'Error al deserializar el objeto del tipo Telerik.Reporting.Service.NameValueDictionary. Se superó la cuota de longitud del contenido de cadena (8192) al leer los datos XML. Esta cuota se puede aumentar cambiando la propiedad MaxStringContentLength en el objeto XmlDictionaryReaderQuotas que se usa para crear el lector XML. Línea 3, posición 13968.'. Consulte InnerException para obtener más información.</faultstring></s:Fault></s:Body></s:Envelope>

    I have changed MaxStringContentLength to 40 000 000 (in client and webservice), but I got the same response. How can I resolve this issue?

    I wrote this in the code
    <telerikReport:ReportViewer x:Name="ReportViewerCorr" 
                                    ReportServiceUri="../ReportingService.svc"
                                                   
                                    Report="LinkSol.Lims.Web.Reporting.QaQcReport.Correlacion, LinkSol.Lims.Web.Reporting, Version=1.0.16.0, Culture=neutral, PublicToken=null"/>


    Thank you,. 
  2. Stef
    Stef avatar
    1 posts
    Registered:
    06 Dec 2016
    20 Jan 2014
    Link to this post
    Hi Jose,

    Configure your service bindings and set the maxStringContentLength to maximum for both the basicHttpBinding and webHttpBinding.

    I hope this helps you.

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

2 posts, 0 answered