on our live system we are having an intermittent problem that reports with charts cannot be created. The reports are generated on-the-fly using templates stored in c# code. When we restart the application pool in IIS everything works again. Before I send you any MRTs or sample code (which would be somewhat difficult in this case) I'm adding here the stacktrace:
Code: Select all
System.ArgumentException: Invalid Parameter.
bei System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
bei System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
bei Stimulsoft.Report.Painters.StiChartGdiPainter.GetImage(StiComponent component, Single& zoom, StiExportFormat format)
bei Stimulsoft.Report.Chart.StiChart.GetImage(Single& zoom, StiExportFormat format)
bei Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
bei Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
bei Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)
bei Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, Stream stream, StiExportSettings settings)
bei MM.Office.Services.ReportGenerator.ReportEngine.WriteToByteArray(StiReport stiReport)
Best regards and many thanks,
John Kitching