Hi,
I'm getting two exception only in server. I do not get it in my local. Any idea for the cause?
Any solution to fix this issue?
Thanks,
I'm getting two exception only in server. I do not get it in my local. Any idea for the cause?
Error : System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.ImageConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType)
at Telerik.Reporting.Pdf.PdfImageInfo.ComputeHash()
at Telerik.Reporting.Pdf.PdfImageInfo..ctor(Image originalImage, RectangleF srcRect)
at Telerik.Reporting.Pdf.PdfImageTable.GetImage(Image originalImage, RectangleF srcRect)
at Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect)
at Telerik.Reporting.ImageRendering.CanvasPdf.DrawImage(Image image, RectangleF destRectMm, RectangleF srcRectPx)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image image, RectangleF destRect)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImageOnPage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
at Telerik.Reporting.ImageRendering.Chart.Render()
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
at SHAPe.Report.ExportToPDF(Report reportToExport, String name)
at SHAPe.Report.btnReport_Click(Object sender, EventArgs e)
Error : System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Drawing.SafeNativeMethods.Gdip.GdipDrawImagePointRectI(HandleRef graphics, HandleRef image, Int32 x, Int32 y, Int32 srcx, Int32 srcy, Int32 srcwidth, Int32 srcheight, Int32 srcunit)
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Rectangle srcRect, GraphicsUnit srcUnit)
at Telerik.Reporting.Pdf.Drawing.PdfImage.InitializeDrawingImage()
at Telerik.Reporting.Pdf.Drawing.PdfImage..ctor(PdfImageInfo info)
at Telerik.Reporting.Pdf.PdfImageTable.GetImageDictionary(PdfImageInfo info)
at Telerik.Reporting.Pdf.PdfImageTable.GetImage(Image originalImage, RectangleF srcRect)
at Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect)
at Telerik.Reporting.ImageRendering.CanvasPdf.DrawImage(Image image, RectangleF destRectMm, RectangleF srcRectPx)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image image, RectangleF destRect)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
at Telerik.Reporting.ImageRendering.CanvasBase.DrawImageOnPage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
at Telerik.Reporting.ImageRendering.Chart.Render()
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
at SHAPe.Report.ExportToPDF(Report reportToExport, String name)
at SHAPe.Report.btnReport_Click(Object sender, EventArgs e)
Any solution to fix this issue?
Thanks,