A generic error occurred in GDI RRS feed

  • Question

  • User-379011848 posted

    On Server 2012 R2 running .NET ...

    Several months ago, I was playing with some code to generate graphs etc for my users.  This code is running on a complete different page from the one I am writing about.

    When I deployed the code to that different page, another page started displaying the error A generic error occurred in GDI. 

    I can trap that error on the Page_error event.  And I can make the error go away by running IISreset.  But, I have to run IISreset every single day. While I am the "owner" of the server, I have my hands tied by corporate server rules.

    I am unable to re-create the error on development VMs.  This only happens on my live VM.  I am at a loss on where to go to get rid of this error.  Any help or a direction to take that can be provided would be great!

    Wednesday, December 23, 2020 1:34 PM

All replies

  • User753101303 posted


    You are logging ex.Message only? As always it's best to start with full error details ie ex.ToString() which should show which GDI+ method fails and which result code is returned.

    It's often a problem with files that couldn't be written (either because of a permission or because the bitmap was not disposed properly).

    Wednesday, December 23, 2020 2:57 PM