输出图片提示错误:GDI+ 中发生一般性错误。
我在本机测试的时候没有问题,发布到IIS6出现:GDI+ 中发生一般性错误。
我的源代码是:
string fullpath = HttpContext.Current.Server.MapPath("/logo.png");
using (System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(fullpath))
{
bitmap.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Png);
}
麻烦高手,,,告诉我哪里错了,我是新手。。。