Error generating web analytics

GTEK IT DEV Team asked on October 29, 2019 05:10

I have meet an error when opening web analytics

Error detail:

Message: A generic error occurred in GDI+.

Exception type: System.Runtime.InteropServices.ExternalException
Stack trace:
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Web.UI.DataVisualization.Charting.Chart.SaveImage(Stream imageStream)
at System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at CMS.Base.Web.UI.ContextMenuContainer.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at CMS.Base.Web.UI.AbstractUserControl.Render(HtmlTextWriter writer)
at CMSModules_Reporting_Controls_ReportGraph.Render(HtmlTextWriter writer)

The report can't show the chart. How can i fix this. Thanks.

Recent Answers


Matúš Ušiak answered on October 29, 2019 09:23 (last edited on October 29, 2019 09:48)

This appears to be a general .Net/IIS related error, so I would first try restarting IIS. If this does not resolve the issue, it may be permissions related as suggested in the articles below:

forums.asp.net/t/1353341.aspx

www.aspforums.net/Threads/159114/Error-when-hosted-in-IIS-Server-SystemRuntimeInteropServicesExternalException-0x80004005-A-generic-error-occurred-in-GDI/

stackoverflow.com/questions/15571022/how-to-find-reason-for-generic-gdi-error-when-saving-an-image

Please ensure that the folder and web application read write permissions are set appropriately.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.