System.Drawing.Image.Save, A generic error occurred in GDI+.

When I using System.Drawing.Image.Save() to save an image, an exception occured, it says:A generic error occurred in GDI+. The message doesn't help at all.

 

Finaly I found I save to a path that doesn't exists, after I created the folder, it saved correctly.

你可能感兴趣的:(asp.net,.NET)