title: A generic error occurred in GDI+
body: <blockquote>
    <p>A generic error occurred in GDI+</p>
    
    <p>[ExternalException (0x80004005): A generic error occurred in GDI+.]
       System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) +615257</p>
  </blockquote>
  
  <p>I have a webpage in which a pdf is converted to png, and using the response.outputstream 
  it is displayed. when i run this on my local machine is works fine. but when i run the same code on server is throws this exception.</p>
  
  <p>my question is , where i could look in for error. as there is no inner exception or any other information provided. only clue is that it's happening on Image.Save , but the same code works perfectly fine on my local machine , then  y is it not working on production???</p>
  
  <p><a href="http://blog.maartenballiauw.be/post/2008/05/13/ASPNET-MVC-custom-ActionResult.aspx" rel="nofollow noreferrer">http://blog.maartenballiauw.be/post/2008/05/13/ASPNET-MVC-custom-ActionResult.aspx</a></p>
  
  <p>this is the example i am following</p>