A generic error occurred in GDI+

Version 6

    Verified Product Versions

    LANDESK Service Desk 7.8.xLANDESK Service Desk 2016.xLANDESK Asset Central 2016.xLANDESK Service Desk 2017.x

    Environment:

    Service Desk All Versions

     

    Question:

    Our users have been receiving the following error message and console crashes how can I resolve it.

     

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

     

    Exception Text **************

     

    System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.

      at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

      at System.Drawing.Graphics.DrawRectangle(Pen pen, Single x, Single y, Single width, Single height)

      at Touchpaper.Console.Integration.ResultsSlidingTitleBar.PanelWithColourBorder.OnPaint(PaintEventArgs e)

      at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)

      at System.Windows.Forms.Control.WmPaint(Message& m)

      at System.Windows.Forms.Control.WndProc(Message& m)

      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    You may also see this error in your application log when the inbound mail service processes and email with an image embedded in the body of the email e.g a logo in the email signature

     

     

    Answer:

     

    This can be a permission problem.  We have seen that by adding everyone with full permission on the "c:\windows\temp" folder for the server you are connecting has resolved this issue.

     

    Go to my computer

    Open the windows folder

    Right click on the temp folder and select properties

    Under the Secuirty tab click on "Edit"

    In the next window click the "Add" button.

    Type the user "everyone" and click on OK

    Highlight the user and tick the Allow "Full Control" box and click on OK

    Then close the "Properties" window by clicking on OK

     

    If you don't want to assign Full control to everyone on the c:\windows\temp folder you can check the framework the inbound mail service is using by stopping the service in configuration center and clicking edit link next to it.  Make a note of the framework the service is using and then edit the application pool in configuration center that that framework is using and make a note of the user the application pool is running as.  This is the user that needs Full Control to the C:\windows\temp folder (it is usually the Network Service account by default)