Report not rendering charts in pdf (A generic error occurred in GDI+)

I've found the following exception stack trace in the Report Server log:
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: A generic error occurred in GDI+. ---> System.Runtime.InteropServices.ExternalException:
A generic error occurred in GDI+.
   at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
   at Microsoft.Reporting.Chart.WebForms.Chart.Save(Stream imageStream, ChartImageFormat format)
   at Microsoft.ReportingServices.OnDemandReportRendering.ChartMapper.GetImage(ImageType imageType)
   --- End of inner exception stack trace ---;
I've got no idea what this is, any help would be appreciated. I don't know what could potentially cause this, so I don't even know how to start looking for a fix.
Other info:
SSRS 2012 BI
Win Server 2008 R2 (Running on Hyper-V)
The pdf report(s) renders and is saved to the location it is meant to, but devoid of any charts. A data driven subscription controls the rendering.

Hi,
This is a known issue with Windows GDI+. To resolve the issue, please install the hotfix for youR Windows Server 2008 R2 from:
http://support.microsoft.com/kb/2495074
Regards,
Mike Yin
TechNet Community Support

Similar Messages

  • SSRS 2012 SP2 - Windows 2008R2 - Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: A generic error occurred in GDI+

    Hi,
    I have built new SQL 2012 SSRS SP2 with Windows 2008R2 and BAR reports are not showing (just "x" mark in the left corner).
    Following is the log file information. I have gone through other forums and all are with windows 8 or windows 2012. Your help is much appreciated.
    library!ReportServer_0-15!d7c!08/13/2014-10:52:17:: i INFO: RenderForNewSession('/ProductionReporting/PlantProduction')
    reportrendering!ReportServer_0-15!d7c!08/13/2014-10:52:18:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: A generic error occurred
    in GDI+. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
       at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
       at Microsoft.Reporting.Chart.WebForms.Chart.Save(Stream imageStream, ChartImageFormat format)
       at Microsoft.ReportingServices.OnDemandReportRendering.ChartMapper.GetImage(ImageType imageType)
       --- End of inner exception stack trace ---;
    Thanks,
    Vel
    Vel Thavasi

    Hi Vel,
    According to the error message, the issue is related to GDI+. Based on my research, it is a known issue that the GDI+ need to be updated on Windows Server 2008 R2. If we want to know what version of GDI+, we can do a file search for Gdiplus.dll.
    To fix this issue, please install the hotfix for your Windows Server 2008 R2 from the following kb:
    http://support.microsoft.com/kb/2495074
    There following thread about the similar issue is for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/50c071db-b4fc-4a2e-a9f4-e10e833c97d2/report-not-rendering-charts-in-pdf-a-generic-error-occurred-in-gdi?forum=sqlreportingservices
    If there are any other questions, please let me know freely.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • ExternalException was unhandled : A generic error occurred in GDI+.

    I am try to save this bitmap as jpg file for every 5 sec. It works fine at another application, before I move this method to another app. The error message shows ExternalException was unhandled : A generic error occurred in GDI+. I do not know if
    it is write permission issure or anything else. Since I use same computer and try to save at same file path, the error message keep going. I think I need help.
    The error code:
    public void captureScreen()
    bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    Debug.WriteLine("width:{0}, height:{1}", Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
    gfxScreenshot = Graphics.FromImage(bmpScreenshot);
    gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
    //Save the screenshot to the specified path that the user has chosen
    i++;
    string i1 = Convert.ToString(i);
    string name = "good" + i1 + ".jpg";
    ImageCodecInfo jpg = GetEncoder(ImageFormat.Jpeg);
    System.Drawing.Imaging.Encoder myEncoder = System.Drawing.Imaging.Encoder.Quality;
    EncoderParameters myEncoderParameters = new EncoderParameters(1);
    EncoderParameter myEncoderParameter = new EncoderParameter(myEncoder,
    50L);
    myEncoderParameters.Param[0] = myEncoderParameter;
    bmpScreenshot.Save(name, jpg,
    myEncoderParameters);
    Bitmap bitmap = new Bitmap(name);
    System.Drawing.Image image = (System.Drawing.Image)bitmap;
    The error shows here:
    bmpScreenshot.Save(name, jpg,
    myEncoderParameters);
    And Only alow me save one jpg, then pop up error

    Hi
    Since I can't reproduce your issue with some
    undefined code.
    Just take a look at from
    Graphics.FromImage Method
      in MSDN  document.
    You should always call the Dispose method to release the
    Graphics and related resources created by the
    FromImage method.  Please try and test it again.
    If still can't resolve, please post the complete code.  Thanks.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • A generic error occurred in GDI+ while assing tiff image file to Bitmap and Image

    Hi,
    I am getting "A generic error occurred in GDI+" error while reading the tiff image file to Bitmap or Image.
    Below is my sample code.
    string filePath=@"c:\Images\sample.tif";
    Bitmap bmp=new Bitmap(filePath);   // here getting exception
    int totalpages=bmp.GetFrameCount(.....);
    etc......
    I tried using Bitmap.FromFile() and also from FromStream() even for Image also but there is no use.
    Moreover i m having full permissions for the file path and the tiff file is having multiple pages.
    Can anyone help me to solve this issue please.
    Thanks & Regards,
    Kishore
    Kishore

    Make sure that the Tif file is valid (can other software open it)?  If you are able to save a Tif using GDI+, try saving that Tif, then opening it.  Part of me wonders if there is something about that specific Tif that GDI+ doesn't like.
    You could also try using WIC to open the TIF, perhaps you would have better luck there.

  • Bitmap.Save 'A generic error occurred in GDI+'

    Hello All,
    I was just going to play around by generating some bitmaps programatically.
    I started off with this simple example, expecting everything to go smoothly, but have run into a strange error.
    The following code is by no means good, just something simple and complete I would expect to work:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    namespace BitmapOutput
        public partial class Form1 : Form
            /// <summary>
            /// The picture i am drawing
            /// </summary>
            System.Drawing.Bitmap myBitmap;
            /// <summary>
            /// Graphics object for drawing
            /// </summary>
            System.Drawing.Graphics myGrafx;
            public Form1()
                InitializeComponent();
                this.myBitmap = new Bitmap(800, 600);
                this.myGrafx =                 System.Drawing.Graphics.FromImage(this.myBitmap);
                this.DrawPicture();
                this.ShowPicture();
                this.SavePicture();
            public void DrawPicture()
                this.myGrafx.DrawEllipse(
                    new Pen(System.Drawing.Color.AliceBlue),                 new Rectangle(0, 0, 100, 100));
            public void ShowPicture()
                this.pictureBox1.Image = this.myBitmap;
            public void SavePicture()
                this.myBitmap.Save("Output\\out.bmp" ,                    System.Drawing.Imaging.ImageFormat.Bmp );
    This runs fine until the SavePicture(...) function is called.
    I get the exception:
    "A generic error occurred in GDI+."
    at the this.myBitmap.Save(...); line.
    Most likely there is some detail that I have overlooked, and I appreciate it if anyone could point out to me what I could do to fix it.
    But, I'd like to think that this code would work, it makes sense, and requires little effort, that should be one of the goals of .net
    Any help or ideas are greatly appreciated!
    P.S. how do I use 'code' tags?

    Actually, the fix is to properly dispose of your objects in order.  This is one advantage of C#, with the using() syntax:
    // new image with transparent Alpha layer
    using (var bitmap = new Bitmap(330, 18, PixelFormat.Format32bppArgb))
    using (var graphics = Graphics.FromImage(bitmap))
    // add some anti-aliasing
    graphics.SmoothingMode = SmoothingMode.AntiAlias;
    using (var font = new Font("Arial", 14.0f, GraphicsUnit.Pixel))
    using (var brush = new SolidBrush(Color.White))
    // draw it
    graphics.DrawString(user.Email, font, brush, 0, 0);
    // setup the response
    Response.Clear();
    Response.ContentType = "image/png";
    Response.BufferOutput = true;
    // write it to the output stream
    bitmap.Save(Response.OutputStream, ImageFormat.Png);
    Response.Flush();
    Notice how I dispose (end the using) of the graphics parameter, before I save it?  You don't have to use the using() statements, just call Dispose() at the end of the scope I show above.
    I ran into this problem today on Azure (works locally in the cloud, just an Azure 1.3 thing!), and I saw the link to the blog post above.  That was a good link, as it pointed me in the direction of disposing the graphics earlier.
    But, there is no point of increasing hte memory usage of two bitmaps if you dispose of your graphics properly before saving.
    http://eduncan911.com

  • After many hours of "rendering", the message appears that"--could not be prepared for publishishing because an error occurred error code= -34"  What does this mean?

    After many hous of "rendering"  the message appeared that "--could not be prepared for publishing because an error occurred error code= -34"

    re-post in the iMovie forum where all the people that use that software are.  This is the Lion 10.7 forum.

  • Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error code -50) imovie 09 v8.0.6

    When I try to export the movie I get this error code. Im doing a music video and have put days into it and now I can not get it to export! My other small project export with no problem.

    Thanks for the details.  We have a similar problem (see my post below) and are in the process of adding back each clip and then testing for export.  My question is, once iMovie is unable to export the project, does it render the file "bad" and prevent exporting even if you remove the "poisned" clip(s)?
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Hello,  We are having a similar problem running iMovie '09.  We get the exact same error as you reported. 
    "Unable to prepare project for publishing" The project could not be prepared for publishing because an error occurred (-50)
    We have a very similar situation were we have multiple repeated clips.  However, our clips are 2.4 's.  Like you, we took the finished project and started eliminating edits that we thought might be preventing it from exporting. The following actions still would not allow the project to export:
    removing title pages
    removing transitions
    removing imported music from iTunes
    removed another clip from another event
    closed all other programs
    closed iMovie, powered off computer, opened iMovie, tried to export
    reconfirmed the last project exported would still export - it did without issueThe only difference between the project that will export and the one that does not are these short (2.4's) repeating clips
    When we create the new project from the recorded event without making any edits (just as recorded), it exports without issue.  We have started the arduous task of adding back in each edit and testing it for export until we determine which edit is causing it to "not export".  This is a very inefficient way of troubleshooting.
    This is a science project for my son and we need to be able to save it as a QT or mpeg4 movie so that he can submit it to his teacher for viewing and a grade!
    Any ideas from any other users would be greatly appreciated.

  • Imovie error The project could not be prepared for publishing because an error occurred. (-50)

    I can't export my imovie project.
    Appears this message:
    "The project could not be prepared for publishing because an error occurred. (-50)"
    What can I do?

    Thanks for the details.  We have a similar problem (see my post below) and are in the process of adding back each clip and then testing for export.  My question is, once iMovie is unable to export the project, does it render the file "bad" and prevent exporting even if you remove the "poisned" clip(s)?
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Hello,  We are having a similar problem running iMovie '09.  We get the exact same error as you reported. 
    "Unable to prepare project for publishing" The project could not be prepared for publishing because an error occurred (-50)
    We have a very similar situation were we have multiple repeated clips.  However, our clips are 2.4 's.  Like you, we took the finished project and started eliminating edits that we thought might be preventing it from exporting. The following actions still would not allow the project to export:
    removing title pages
    removing transitions
    removing imported music from iTunes
    removed another clip from another event
    closed all other programs
    closed iMovie, powered off computer, opened iMovie, tried to export
    reconfirmed the last project exported would still export - it did without issueThe only difference between the project that will export and the one that does not are these short (2.4's) repeating clips
    When we create the new project from the recorded event without making any edits (just as recorded), it exports without issue.  We have started the arduous task of adding back in each edit and testing it for export until we determine which edit is causing it to "not export".  This is a very inefficient way of troubleshooting.
    This is a science project for my son and we need to be able to save it as a QT or mpeg4 movie so that he can submit it to his teacher for viewing and a grade!
    Any ideas from any other users would be greatly appreciated.

  • When I go to download my iMovie to iTunes I get the following message "Unable to prepare project for publishing.  That project could not be prepared for publishing because a error occurred"(disk full).  What do I need to do?

    When I go to share my Imovie to Itunes after a couple of hours I get the following message.  "Unable to prepare project for publishing.  That project could not be prepared for publishing because a error occurred(disk full)".  What does this mean and how do I fix it?

    This is the forum for iOS (iPhones and iPads),
    I have refered it to get moved to the correct forum.
    But my guess is that you have to clear space on your harddrive.
    The video gets rendered when you out put it, so you will need lots of space to do so.

  • When sharing iMovie11 project  with iDVD inmediately message 'the project could not be prepared for publishing because an error occurred (Error in user parameter list).  Finalize issue?

    When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error  occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info about this error.
    Option File - Finalize Project gives inmediately the same errormessage.
    Also option Share - Media Browser - Large/Medium/Mobile give the same errormessage.
    Please advise, thank you!

    Additional info: trying to write to internal disk (268 GB Free out of 499 GB)
    Please advise, alko80

  • The project could not be prepared for publishing because an error occurred.

    I have just loaded iLife 09 on my MAC. I've edited a movie and now want to export it, put it in iTunes, whatever I can do to move it beyond my laptop. No matter what option I choose under Share I get the same error message, "The project could not be prepared for publishing because an error occurred. (-2009)". I can find the error message online, but not the (-2009) error code. I'm also a longtime PC person who has just switched to a MAC. Can anyone help?

    I also am having the exact same problem. iMovie '09. I have tried changing permissions on all sharing folders, exporting to desktop, sharing to iTunes in all size files - and yet still get "Unable to prepare project for publishing. error (-2009).
    Mac OSX version 10.6.2 Snow Leopard

  • I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data

    I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data on my wifes phone how do you correct problem without losing calendars info on phone.

    One thing that might help.
    1. open itunes preferences from the edit menu and click on the devices tab.
    2. check the box to disable syncing for iphones connected to itunes and click ok.
    3. Then click the button to reset sync history.
    4. Now click ok to close the preferences window.
    5. connect the iphone to itunes and go to the info tab.
    6. scroll to the bottom of the info page and check the box to replace the ical data on the iphone.
    7. then click apply on the bottom right of itunes.
    This will overwrite any events on the iphone, including any events that has become corrupted.
    Hope this helps

  • HT2292 hello i'm facing  problem  i downloaded iTunes version 11 32bit  and after i installing the set up when i opened the iTunes a massages  occur saying i tunes could not connect to iTunes store an unknown error occurred (-3212) even  though my interne

    Hello i'm facing  problem  i downloaded itunes version 11 32bit for windows 7 and after i installing the set up when i opened the iTunes a massages  occur saying i tunes could not connect to iTunes store an unknown error occurred (-3212) even  though my internet is on

    Try this...
    Triple click anywhere in the line below to select it and press Ctrl+C to copy it.
    cmd /k netsh winsock reset
    Press the WinLogoKey+R to open the run dialog, then Ctrl+V to paste, then press enter/return.
    You should get something similar to this:
    Reboot the computer and the problem should be resolved.
    If it doesn't work then perhaps a full tear down and rebuild of iTunes will fix things. See Troubleshooting issues with iTunes for Windows updates for details.
    tt2

  • HT201263 iPhone 4 is in recovery mode but iTunes can not restore it.. Says unknown error occurred  (21) HELP!

    I've just got back of holiday and while there my phone decided to turn itself off, it would not come back on unless I plugged it into the wall charger, it said that I had to connect it to iTunes, but being on holiday I couldn't.
    So when I got home yesterday I plugged it into my laptop and the Apple logo came on, and then went off again, then back on and off again, it was doing this untill I unplugged it. So I put it into recovery mode and it said Connect to iTunes, so I did. It then said that the phone needed to be restored, iTunes started this process, 'extracting software' it said, and then once that was done it said 'preparing iPhone for restore' but then my phone disconnects itself from the laptop and then connects again then disconnects again. Then iTunes comes up with a message saying 'iTunes can not restore this iPhone 'iPhone', a unkown error occured (21)'
    I have tried over and over again to try and do this but it keeps coming up with the same.
    Does anyone know what's wrong with my iPhone and how I can fix it?
    Thanks

    And what did the error message say?

  • The project could not be prepared for publishing because an error occurred. (-108)

    Got the following error while trying to share my project:
    "The project could not be prepared for publishing because an error occurred. (-108)"
    I got this error everywhere: share to idvd, share - export movie ...
    Computer: MAcbook Pro 2.3GHz Intel Core I5, memory : 4 GB (when I start exporting the available memory is about 2Gb, no other app runing)
    Softwer: Mac OS X 10.7.2, iMovie '11 9.0.4 (1635)
    Project: 50min, filmed with Gopro 960HD
    Please help!
    Thanks in advance,
    Lóránt

    Most recently there's been a series of errors -49 being posted to the Discussion Group. I've seen one other -108 error that showed up but without any resolution. The original poster hasn't replied yet to that mesage thread. I don't know if the two are related, but they both have a negative effect on exporting. So I'm going to suggest following the fix for the -49 errors:
    This requires using the Terminal app, in your Applications/Utilities folder
    To turn off Time Machine snapshots type in the following command:
    sudo tmutil disablelocal
    The Mac will likely ask for your password, so type it in and hit the return key. The type the word, exit and hit return. Quit Terminal.
    Open iMovie and try doing another export and see if the same error message pops up.

Maybe you are looking for

  • Terrible service for the past few months, trouble ...

    Hi all, I'm hoping I may be able to get more help here. For the past few months my phone line has been incredibly crackily and faint, my broadband (not with BT) has also been cutting out for long periods of time making it almost impossible to use. Ab

  • IPhone as GPS receiver for Wi-Fi iPad

    As you sadly know there is no such feature, the iphone hotspot provides ONLY internet. what other options are available? 1. buy BT GPS receiver in addition? which one is best? 2. Apps? Please share and let me know how did you overcome this. [it's rea

  • Can't fit width without making text unreadably small

    I can fit the width with the toolbar icon, but the text shrinks to pictures of horizontal lines.  OR...  I can read the text, but have to scroll left and right for every line just to do it.  The file is tagged.  I am using Reader for Pocket PC 2.0. 

  • Maintain Validity Date for Mitigation Control Assignment to Users Virsa 5.2

    We have over 1,000 SoD's all mitigated.  The val;idity date for these mitigation controls needs to be updated.  Does anyone know a way to perform a range of updates so it is not necessary to update each user assigned to a Mitigation Control.

  • Reg : unable to find VO

    Hi Folks, I am new to OAF. In the OAF page i have a message list. In that i have 2 values But i have to remove one value. So i came to know that i have to change in VO. I searched about VO in about this page. But there is no VO. Can any one suggest m