none
A generic error occurred in GDI+ in Windows Server 2008 RRS feed

  • Question

  • Dear,

    I have an application in asp.net build in .net framework 3.5. In my application, I'm drawing an image containg some texts in it. In some cases when I use some unicode charactors (combination of keys) I'm getting "A generic error occurred in GDI+" in my hosted application running in Windows Server 2008 server. But it works fine in my development system which is Windows 7 Pro SP1.

    Stack Trace:

    [ExternalException (0x80004005): A generic error occurred in GDI+.]
       System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea, StringFormat stringFormat) +1498838
       System.Drawing.Graphics.MeasureString(String text, Font font, SizeF layoutArea) +18
       System.Drawing.Graphics.MeasureString(String text, Font font) +58

    This occurs only with certain Unicode charactors when passed to MeasureString method in the server:

    eg:মৃত‍ঃ সামছুল হক'

    Thanks in advance

    • Edited by moncytvs Friday, June 15, 2012 7:31 AM Included Stack Trace
    Friday, June 15, 2012 6:36 AM

All replies