This is a migrated thread and some comments may be shown as answers.

A generic error occurred in GDI+, 1 page report with no images other than the drilldown icons

3 Answers 442 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 21 Mar 2014, 03:46 PM
1 page report with drill down.
Runs just fine locally. On the server I get:

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) +811673
   Telerik.Reporting.Processing.Imaging.ImageUtils.ResolveImage(Image image) +200
   Telerik.Reporting.Processing.Imaging.ImageUtils.GetImageData(Object value) +63

[InvalidOperationException: Invalid image data.]
   Telerik.Reporting.Processing.Imaging.ImageUtils.GetImageData(Object value) +353
   Telerik.Reporting.Processing.Imaging.ImageContainer..ctor(Object value) +17
   Telerik.Reporting.Html5Rendering.Writers.Html.Element.CreateToggleAdorner(IAdornerAction adornerAction, IInteractiveItem item, ElementPageInfo pageInfo) +975
   Telerik.Reporting.Html5Rendering.JavaScriptActionsWriter.WriteAction(IAction action, XmlElement xmlElement, Func`1 getToggleVisibilityElement) +867
   Telerik.Reporting.Html5Rendering.Writers.Html.Element.Begin(LayoutElement element, ElementPageInfo pageInfo) +720
   Telerik.Reporting.Html5Rendering.Writers.Html.TextBox.Begin(LayoutElement element, ElementPageInfo pageInfo) +279
   Telerik.Reporting.Html5Rendering.Writers.Report.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo) +208
   Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler) +91
   Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler) +42
   Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() +66
   Telerik.Reporting.Paging.PageCompositionBase.OutputPage() +576
   Telerik.Reporting.Paging.PageCompositionBase.CreatePages() +564
   Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +595
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) +1348
   Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext) +100
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +361
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +218
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

3 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 26 Mar 2014, 02:38 PM
Hello Ralph,

It seems that there are some restrictions on the server, like read/write permissions. Also please check this Medium Trust Support help article.

Regards,
IvanY
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Rajashree
Top achievements
Rank 1
answered on 18 May 2015, 01:13 PM

Hi,

 I am getting the same above error when I click the link first time that renders a pdf report through my deployed application. When I recycle the application pool the error dosen't appear. Please find below the error,

System.Runtime.InteropServices.ExternalException
(0x80004005): A generic error occurred in GDI+. at
System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder,
EncoderParameters encoderParams) at System.Drawing.ImageConverter.ConvertTo(ITypeDescriptorContext
context, CultureInfo culture, Object value, Type destinationType) at
Telerik.Reporting.Pdf.PdfImageInfo.ComputeHash() at
Telerik.Reporting.Pdf.PdfImageInfo..ctor(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.DrawImageUnscaled(Image image,
RectangleF destRect) at
Telerik.Reporting.ImageRendering.CanvasBase.DrawBackgroundImage(Image bitmap,
RectangleF destRect, BackgroundRepeat repeat) at
Telerik.Reporting.ImageRendering.DocumentBase.WriteBackground(RectangleF
bounds, Color backgroundColor, IBackgroundImage backgroundImage) at
Telerik.Reporting.Writing.VisualElementWriter`1.WriteBackground(T element,
ElementPageInfo pageInfo, DocumentWriter writer) at
Telerik.Reporting.Writing.ReportItemBaseWriter`1.StartWrite(T element, ElementPageInfo
pageInfo, DocumentWriter writer) at
Telerik.Reporting.Writing.ElementWriter`1.Telerik.Reporting.Writing.IElementWriter.StartWrite(LayoutElement
element, ElementPageInfo pageInfo, DocumentWriter writer) at
Telerik.Reporting.Writing.WriteOperationsDispatcher.Write(IElementWriter
writer, LayoutElement element) at
Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement
element) at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler
handler) at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler
handler) at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages() at
Telerik.Reporting.Paging.PageCompositionBase.OutputPage() at
Telerik.Reporting.Paging.PageCompositionBase.CreatePages() at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report
report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream
createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo
extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext
renderingContext, CreateStream createStreamCallback) at
Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format,
ReportSource reportSource, Hashtable deviceInfo, IRenderingContext
renderingContext, CreateStream createStreamCallback) at
Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String
format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext,
CreateStream createStreamCallback) at
Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format,
ReportSource reportSource, Hashtable deviceInfo) at 

0
Stef
Telerik team
answered on 20 May 2015, 12:25 PM
Hi Rajashree,

Please check my colleague's suggestions in the previous post. Test running the application on other machines as well.

In order to investigate the problem further, open a support ticket and send us a demo project reproducing the problem.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ralph
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Rajashree
Top achievements
Rank 1
Stef
Telerik team
Share this question
or