ReportViewer increase MaxStringContentLength - Bugs & Issues - Bugs & Issues - Progress Community

ReportViewer increase MaxStringContentLength

 Bugs & Issues

ReportViewer increase MaxStringContentLength

  • ReportViewer increase MaxStringContentLength
  • 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,. 
  • 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.