We have an environment where 2 web servers are used with a load balancer. When running SSRS reports through DynamicPDF we get the error "The XML page cannot be displayed. An invalid character was found in text content."
Stack Trace:
Exception information:
Exception type: InvalidOperationException
Exception message: Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.SqlServer.ReportingExecutionServices.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
at Stockamp.Portal.ReportingServices.SAReportServerAccess.GetReportStream(String reportPath, ArrayList parameterValues, String format)
at Stockamp.Portal.Reporting.ReportServerDataProvider.GetReportStream(String reportPath, List`1 linkedReportParameters, Int32 userID, Int32 linkedReportID, String format, Boolean isReportSet, DataSet groupData, DataSet sortData)
at Stockamp.Portal.Reporting.LinkedReportsController.RenderLinkedReport(Int32 userID, LinkedReportInfo linkedReportInfo, String format, Boolean isReportSet)
at Stockamp.Portal.WebUI.Forms.LinkedReportDetail.ExportLinkedReport(Int32 UserID, Int32 LinkedReportID, String format)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Load Balancer Issue
Re: Load Balancer Issue
Support · Nov 15, 2013Hello,
I am not exactly sure what you mean by running SSRS reports through DynamicPDF. Our product does not support running SSRS reports. Please provide more details on how you are using our product. The error message you have posted is not generated by our product and there is nothing in the error stack trace that indicates that our component has failed.
Thanks,
ceTe Software Support Team.
Re: Load Balancer Issue
Forum member · Nov 15, 2013We are using DynamicPDF to stitch the reports from SSRS together. Basically, we loop through a number of SSRS reports and output them in PDF. Then for each PDF we use ceTeMerger.PdfDocument to stitch them together before displaying them to the web as a combined PDF document. The application works on our client servers except one. The only difference we can discern at this time is that it has a load balancer on it.
Re: Load Balancer Issue
Support · Nov 18, 2013Hello,
When you call the DrawToWeb method on the merged document, the binary content of the PDF is sent to the client browser that requested that page. As you are able to generate the PDFs correctly on other servers, our product is generating the PDF as expected and there is nothing in our product that will prevent you from using it on a server that has a load balancer. The error posted above is not thrown by our product, so there could be some issue with the load balancer that is causing this error.
Thanks,
ceTe Software Support Team.