Infrequent and generic error on cfinclude

I'm experiencing an intractible and difficult-to-explain
problem with a framework-level coding structure.
My index.cfm ends with a <cfinclude> tag that brings in
the page template. It works just fine - *most* of the time. Every
now and then that line of code throws a very generic error that
only reports the line number.
The code reads: <cfinclude
template="#PageInfo.Page.PageTemplate#">
I assure you that the variable contains an absolutely valid
template value. I have proven this over and over.
Instead of attempting to explain the truly arcane and
numerous factors that I've discovered, let me ask a simple
question: Does anyone know why <cfinclude> would throw a
generic error when the template most certainly exists? How can I
address this?

Dan -
I catpured an error at 10:30 last night. The "type" is
java.util.EmptyStackException.
Although the on-screen errormsg showed one error at line 87,
the cfcatch dump shows TWO elements under TagContext. Both are
CFINCLUDES, as shown below.
Is this meaningful to you?
1 struct
COLUMN 0
ID CFINCLUDE
LINE 87
RAW_TRACE at
cfindex2ecfm2088046539.runPage(D:\Inetpub\tas\index.cfm:87)
TEMPLATE D:\Inetpub\tas\index.cfm
TYPE CFML
2 struct
COLUMN 0
ID CFINCLUDE
LINE 177
RAW_TRACE at
cfApplication2ecfc1561683104$funcONREQUEST.runFunction(D:\Inetpub\tas\Application.cfc:177 )
TEMPLATE D:\Inetpub\tas\Application.cfc
TYPE CFML

Similar Messages

  • 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.

  • When I try and add a video from my iPhone it fails to load with a generic error. How do I fix this?

    I have been trying unsuccessfully to get a video from my iPhone to load.  It plays just fine on windows media player, but every one I try and add on Adobe gives me the same "Add media failure.  The importer reported a generic error."  what do I do to fix this.?

    Here is more information on problems some people have had trying to edit iphone video
    http://forums.adobe.com/thread/881246
    http://forums.adobe.com/thread/1011411?tstart=0
    http://forums.adobe.com/thread/934466

  • When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    after perusing other subjects with playback issues: 
    this is the fix: 
    -Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
    -Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok.

  • Trying to relink video clips and getting "import reporting a generic error" using Premiere Pro CC 2014 on a Mac

    Moving a project over to another computer and I was trying to relink video clips and getting "import reporting a generic error" message.

    Did you find a solution? I'm having this same problem.

  • When trying to import music files I get a error message that says "importer reported a generic error" I'm using windows 7, DellPC, installed premiere elements 13 2 days ago. Also when previewing and editing video,screen looks great but when I transfer to

    When trying to import music files I get an error message Thea says "importer reported a generic error". Also when editing video, screen views look great but when I transfer to PC or flash drive video quality is very poor. Any suggestions?

    chansen232
    Premiere Elements 13 on Windows 7 (presumed 64 bit).....
    1. Music files and error message...are these music files from iTunes? If so, convert them to .wav in iTunes to convert them to wav version, and then import the .wav version into Premiere Elements 13 project using Premiere Elements 13 Expert workspace's Add Media/Files and Folders/Project Assets from where you drag the wav version to the Soundtrack.
    The following are the instructions for the iTunes converting
    http://support.apple.com/en-us/HT1550
    If any problems with the instructions, please let me know, and I will go through them with you.
    2. How you set up the project and the export settings that you select greatly influence your end product result.
    a. What are the properties of the source media?
    b. What project preset did you (manually) or the project (automatically) set to match the properties of the source media.
    (If you do not know, please tell us what you see for the readings of Editing Mode, Timebase, Frame Size, Pixel Aspect Ratio - even
    if the fields look grayed out.)
    c. For your export...Publish+Share/Computer/and then what? And what preset? Did you use the default settings of the preset or did you
    customize the export settings of the preset under the preset's Advanced Button/Video Tab and Audio Tab?
    Let us start here and then decide what next.
    Thanks.
    ATR

  • Importing .MOV files from PC and getting "generic error" msgs... help.

    Importing .mov files which I downloaded from my iPhone onto my PC (so getting them from file folder, not directly from iPhone). However, getting "importer is reporting generic error" message with a list of video files that didn't get imported. Some are importing, though, and showing up on the timeline. Downloaded a whole bunch at a time and thought it was the problem. Then just tried one that had the error to test and that one wouldn't either, even by itself.
    These are MOV files from iPhone 4 recorded with "stock" camera program on phone. Using Premiere Elements 11.
    Please help.

    Welcome to the forum.
    Along with Steve's questions, I have one more:
    Did your iPhone shoot with a Variable Frame Rate?
    That is common with many of the phone cameras, and especially the iPhones. You can run your file through MediaInfo (for PC), or Media Inspector (for Mac), and then report the FPS (Frames Per Second). If it is constant, it should Import fine. If it is variable, then you might have to convert that to a Fixed Frame Rate. One method is to use Apple's QuickTime Pro (a US $30 upgrade/unlock), and just Import the file into QT Pro, then Export to the same format, but with a Fixed Frames Per Second.
    Good luck, and please let us know a bit more.
    Hunt

  • DMVPN and %DMVPN-3-DMVPN_NHRP_ERROR: Tunnel0: NHRP Encap Error for Resolution Request , Reason: protocol generic error (7) Error

      %DMVPN-3-DMVPN_NHRP_ERROR:  Tunnel0: NHRP Encap Error for  Resolution Request , Reason:  protocol generic error (7)
    I had pre-allocated tunnel ip's to remote spokes , some of them were implemented and put into production. Some of them got the config but the tunnel interfaces were left at shut.
    Its because of this reason that the DMVPN HUB keeps getting nhrp request from one of the inactive spokes.  Following is the sh ip nhrp extract :-
    10.x.x22/32
       Tunnel0 created 00:02:58, expire 00:00:06
       Type: incomplete, Flags: negative
       Cache hits: 7
    I just cant seem to find the spoke WAN ip to identify it. I tried debugs but just cant get it.
    From HUB:-
    Nov 30 10:36:31: %DMVPN-3-DMVPN_NHRP_ERROR:  Tunnel0: NHRP Encap Error for  Resolution Request , Reason:  protocol generic error (7) on (Tunnel: 10.x.x.1 NBMA: 20.x.x.x)
    Nov 30 10:36:32: NHRP: Send Resolution Request via Tunnel0 vrf 0, packet size: 86
    Nov 30 10:36:32:  (F) afn: IPv4(1), type: IP(800), hop: 255, ver: 1
    Nov 30 10:36:32:      shtl: 4(NSAP), sstl: 0(NSAP)
    Nov 30 10:36:32:      pktsz: 86 extoff: 52
    Nov 30 10:36:32:  (M) flags: "router auth src-stable nat ", reqid: 46113
    Nov 30 10:36:32:      src NBMA: 20.x.x.x.
    Nov 30 10:36:32:      src protocol: 10.x.x.1, dst protocol: 10.x.x.22
    Nov 30 10:36:32:  (C-1) code: no error(0)
    Nov 30 10:36:32:        prefix: 32, mtu: 17912, hd_time: 360
    Nov 30 10:36:32:        addr_len: 0(NSAP), subaddr_len: 0(NSAP), proto_len: 0, pref: 0 Nov 30 10:36:31: %DMVPN-3-DMVPN_NHRP_ERROR:  Tunnel0: NHRP Encap Error for  Resolution Request , Reason:  protocol generic error (7) on (Tunnel: 10.x.x.1 NBMA: 20.x.x.x)
    So my question is , How do i find out the spoke wan ip , so i can do something about it.  For now, its just filling up my logs on HUb router...not good ;-))

    Hello Marcin,
    If tunnel interface is shut no  NHRP activity should be going, on top, in debugs you point the hub is  sending resolution request, not receiving it.
    Agree, I expected the same, but unfortunately this is not the case. Spoke does sent out NHRP requests even with Tunnel status as admin shut.
    If your hub does not have NHS, it will not know where to send it's resolution request.
    I am still on DMVPN Phase 1, so Spokes dont talk to other spokes yet.
    Are  you positive that there is nothing that is sending packets towards  10.x.x.22 on hub side (sniffer trace of classyfing ACL on "LAN")?
    Other then a spoke, it cant be anthing, as the subnet is dedicted for tunnel interface's.
    If  you know it's not a misconfig and there is no traffic on hub side  initiated to 10.x.x.22, try removing and adding full tunnel  configuration. i.e. we want to make sure that crypto socket gets closed  and restrated.
    I can do this over weekend, but i am sure this is not going to fix the problem, reason being, that the HUB was setup before anything else and then we started migrating spokes from primary legacy gre tunnels to dmvpn tunnel as primary and legacy as a backup.
    Guess, I am still looking for the answer...Is there a WAN acl that i can use to filter the successfully migrated spokes and log the deny message as in to know what remote wan ip carries along the tunnel ip of .22 or any other debug ??

  • Can't find printer connected by ethernet through airport extreme.  All I get is a generic error message - I'm using printer IP address as address.

    Old imac using snow leopard printed just fine to Ricoh cl2000n printer that is connected to airport extreme via ethernet (as was the imac). New iMac with Lion otherwise same cable configuration and the computer cannot find the printer.  It searchs and spits out a generic error message.  Any suggestions?  Thanks!

    Is your printer listed?
    http://support.apple.com/kb/HT3669
    If not then you need to get the driver and install it.
    Otherwise you may want to reset the printing system.
    http://support.apple.com/kb/ht1341

  • Time Machine won't back up. Starts of REALLY SLOW, and the errors out.

    I've been having a hard time getting time machine to back up. To start off I'll give you my specs and what I have done.
    iMac
    OS 10.6.6
    2.4 GHz Intel Core 2 Duo
    4 GB 667 DDR@ SDRAM
    320 GB HD
    All software updates are current. I am trying to back up to an external Western Digital 1 GB drive connected by USB2. I have formatted the external drive, and set a single partition on that drive from the Disc Utility. I have run disk repair on both the external and local hard drive. I have run disk repair permission on the local drive. I have restarted, after every time. I have done everything listed above multiple times, and have done them all in kinda different orders each time.
    My thought is that the issue may not be with the hard drives, but maybe a file its trying to back up. When it starts out for the first time, it tells me that it needs to back up over 100 GB of data. It gets about halfway done, and then errors out. When I try to start it again, it tells me that it needs to backup around 50 GB of data. And this time, its REALLY slow. Like bytes slow, not Mega bytes, or even kilobytes. Bytes. 36 bites backed up, 120 bytes backed up. 2 Kilobytes backed up. SLOW SLOW SLOW.
    Then it picks up, and usually gets up to 120 MB, and then gives me this error message "The Backup was not performed because an error occurred while copying files to the backup disk. - The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk."
    Its a pretty generic message, and gives me no help in trying to figure out what the problem is. I've been trying again for almost 3 days now, and nothing is working. Is there an error log file that I can go find that would help me a little more?

    woody24 wrote:
    "The Backup was not performed because an error occurred while copying files to the backup disk. - The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk."
    See #C3 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Its a pretty generic message, and gives me no help in trying to figure out what the problem is. I've been trying again for almost 3 days now, and nothing is working. Is there an error log file that I can go find that would help me a little more?
    Tell Apple about the inadequacy of that message: http://www.apple.com/feedback/timemachine.html

  • GDI+ Generic Error, multple frame tiff, multiple image formats

    This is a question I posted on stack exchange, but have not gotten any answers.  This is occurring on Windows Server 2008 R2 systems.
    I have seen many issues involving the GDI+ Generic Error, but I have not seen this particular matter raised before. We are consistently getting the error, on Windows systems other than Windows 8, when attempting to read (System.Drawing.Image.SelectActiveFrame)
    a multiple-frame tiff that includes frames in mixed Photometric Interpretation formats. That is to say, the file includes both RGB color and min-is-white formats, with corresponding differences in the Bits/Sample and Samples/Pixel frame parameters. The error
    is consistently raising as soon as a frame is encountered with a format that is different from that of the first frame.
    // Convert File from .tiff to .PDF
    static void ConvertFile(string file, string pdffilename)
    string localMessage = string.Empty;
    try
    //if it's a PDF Just renamed it and continue
    if (file.ToLower().Contains(".pdf"))
    File.Copy(file, pdffilename);
    return;
    // If file exists return
    if (File.Exists(pdffilename)) { return; }
    using (var stream = new FileStream(pdffilename, FileMode.Create))
    localMessage = "01";
    var document = new iTextSharp.text.Document();
    localMessage = "01";
    var writer = iTextSharp.text.pdf.PdfWriter.GetInstance(document, stream);
    localMessage = "02";
    var bm = Bitmap.FromFile(file);
    localMessage = "03";
    var total = bm.GetFrameCount(FrameDimension.Page);
    localMessage = "04";
    document.Open();
    //iTextSharp.text.pdf.PdfContentByte cb = writer.DirectContent;
    localMessage = "05";
    iTextSharp.text.Image img = null;
    for (var currentframe = 0; currentframe < total; ++currentframe)
    localMessage = "06=>" + currentframe.ToString();
    bm.SelectActiveFrame(FrameDimension.Page, currentframe);
    localMessage = "07=>" + currentframe.ToString();
    img = iTextSharp.text.Image.GetInstance(bm, ImageFormat.Bmp);
    localMessage = "08=>" + currentframe.ToString();
    img.ScalePercent(72f / img.DpiX * 100);
    localMessage = "09=>" + currentframe.ToString();
    img.SetAbsolutePosition(0, 0);
    localMessage = "10=>" + currentframe.ToString();
    iTextSharp.text.Rectangle pageRect = new iTextSharp.text.Rectangle(0, 0, img.ScaledWidth, img.ScaledHeight);
    localMessage = "11=>" + currentframe.ToString();
    document.SetPageSize(pageRect);
    localMessage = "12=>" + currentframe.ToString();
    document.NewPage();
    localMessage = "13=>" + currentframe.ToString();
    document.Add(img);
    localMessage = "14";
    bm.Dispose();
    localMessage = "15";
    document.Close();
    localMessage = "16";
    stream.Close();
    catch (Exception exception)
    string msg = exception.Message + "\r\n" +
    "Coversion Error--\r\n" +
    "\tinput file name: " + file + "\r\n" +
    "\toutput file name: " + pdffilename + "\r\n" +
    "\tlocal message" + localMessage + "\r\n";
    Console.WriteLine(msg);
    SaveError(msg);
    throw;
    The "local message" is always "06=>n", where n is the 0-based index of the frame that transitions to a new format.
    The error occurs whether the transition is from black and white to color, or color to black and white.  The issue does not seem to occur on Windows 8 boxes, but we only have W8 developer PCs, not servers.  It is a production process and needs to
    be deployed on a server.
    Does anyone know why this is happening or how to fix it?

    Hi,
    For the GDI related issue, i think you may ask in the following forums:
    http://forums.asp.net/150.aspx/1?System+Drawing+GDI+
    Thanks for your understanding.
    Regards.
    Vivian Wang

  • 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.

  • 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

  • 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

  • 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

Maybe you are looking for