Welcome to the Xceed Community | Help
Community Search  
More Search Options

Generic error occurred in GDI+

Sort Posts: Previous Next
  •  11-25-2008, 7:56 PM Post no. 17189

    Generic error occurred in GDI+

    I am trying to just run and debug a quick start Charting example in the documentation and I hit the GDI+ issue. It looks like it throws exception as the control tries to save the output image to a temp dir. I believe this should not happen when we publish to webserver and the temp folder is setup properly with the necessary access. However, I want to run this from Visual Studio 2008. Can we do that? Otherwise it is not a pretty good scenario for development as you do not want to keep publishing to webserver when you are in development. As a developer I really need to be able to build and run my site with the xceed charting and see it works before I publish to the webserver.

     Any work around?

     

    A generic error occurred in GDI+.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ExternalException (0x80004005): A generic error occurred in GDI+.]
       System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377326
       System.Drawing.Image.Save(String filename, ImageFormat format) +69
       Xceed.Chart.GraphicsCore.ImageDescription.SaveImage(Bitmap bitmap, String sFullFileName) +38
       Xceed.Chart.Server.Response.GenerateImage(ChartServerControl Chart, String sFileName, String sPhysicalTempDirectory, Size szDimensions, ImageDescription imageDescription) +115
       Xceed.Chart.Server.ImageResponse.EmbedInHtml(ChartServerControl chartControl, Size szDimensions, HtmlTextWriter output) +271
       Xceed.Chart.Server.ChartServerControl.Render(HtmlTextWriter output) +142
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
    

  •  11-26-2008, 12:32 PM Post no. 17211 in reply to 17189

    Re: Generic error occurred in GDI+

    Yes you can debug you application within Visual Studio.  If you do it via the FileSystem, simply add a temp folder to the root folder of your project, and it will work fine.  If you use "localhost", then you need to have the same folder with the right permission set on it, in the root folder of the site.


    André
    Software Developer
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.