000029919 - Chart images for statistical reports fail with error: A generic error occurred in GDI+ in RSA Archer

Document created by RSA Customer Support Employee on May 2, 2019Last modified by RSA Customer Support Employee on Aug 16, 2019
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000029919
Applies ToRSA Product Set:  Archer
RSA Version/Condition:  5.x, 6.x
Platform:  Windows
IssueChart images for Statistical Reports do not display and the following error appears:

A generic error occurred in GDI+



Sample exception from the w3wp log file would show:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <ApplicationData>
         TraceData>
             <DataItem>
                 <TraceRecord Severity="Error"xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
                       <TraceIdentifier>Archer.Web</TraceIdentifier>
                    <LogReferenceId>111216-192309-5273</LogReferenceId>
                    <Description>A generic error occurred in GDI+.</Description>
                    <AppDomain>/LM/W3SVC/1/ROOT/Archer-22-130602936670603391</AppDomain>
                    <ContextData>
                        <BaseUrl>https://archerweb/Archer/SearchContent/IViewSearchResults.aspx</BaseUrl>
                        <view>Report</view>              
                        <Report>ReportId: 1234, ReportName: ABC Report, ReportType: SearchBased</Report>
                        <Dashboard>DashboardId: 78, DashboardName: ABC Dashboard, IsActive: True, IsPersonal: False, IsPrivate: True</Dashboard>
                        <CacheStatus>invalid</CacheStatus>                                           
                        <fw>915</fw>
                        <fh>415</fh>
                    </ContextData>
                    <Exception>
                        <ExceptionType>System.Runtime.InteropServices.ExternalException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
                         <Message>A generic error occurred in GDI+.</Message>
                        <Source>System.Drawing</Source>
                        <StackTrace>
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.SaveImage(String imageFileName)  
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.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.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.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</StackTrace>
                     </Exception>
                </TraceRecord>
            </DataItem>        
        </TraceData>
    </ApplicationData>
</E2ETraceEvent>
ResolutionThis error can occur for a number of reasons:
  1. Verify that the file repository is accessible from the web server. There could be issues accessing it, if it located at a shared location.
  2. Verify that is there is enough space on the repository.
  3. If this issue is occurring post an upgrade, please reboot the web server.
  4. Chart images are temporarily created in the File Repository; for example:  C:\ArcherFiles\FileRepository\ChartImages, depending on where your File Repository is located. Please verify if you see chart images being created dynamically by .NET. The file names are usually in the following format:  ChartImg_2ee1cc1f9-cbdb-4304-a706-7874d004a7bc.png.
  5. Perform IIS reset to see if it fixes the issue if Not,
  6. Re-register ASP.NET using the following command :

dism /online /enable-feature /featurename:IIS-ASPNET45



  1. Clear the temporary ASP .NET files, located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files, by default.
  2. This can occur due to an incompatible .NET version.  Install the qualified and supported .NET version for the Archer version.

Attachments

    Outcomes