i am using Windows Server 2008 with IIS7, so the previous solutions to this problem don't seem to apply. This code worked on windows 2003. But something is different for windows 2008. I am trying to save a bitmap image to a folder on the webserver using the c# code as follows:
The error message is:
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at ASP.ecards_ecard_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
This error code is usually related to permissions for the ASPNET account. However, IIS7.0 uses ASPNET account control in a different way.
I have looked at the physical path, the permissions, etc. but apparently there is something different on windows server 2008 IIS7 that is preventing me from saving the image.
Does anyone have experience with Windows 2008 server IIS7.0 and saving images??