ArgumentException: Invalid Parameter in StiChartGdiPainter.G
Posted: Tue Dec 11, 2012 2:23 pm
Hallo Support,
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:
Maybe this is something you have seen before and have a quick idea what is going wrong. As I said, the problem does not always occur on the live system but once it starts, no more reports with charts are possible until we restart the app. pool.
Best regards and many thanks,
John Kitching
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