Feb 9, 2010

A generic error occurred in gdi+

You get this error when you upload your webite to your hosting server or a different environment other than you development machine and you try to save a image file to that disk.

Resolution: If you have uploaded to hosting server, access the folder using your panel's file manager and mark the folder where images are uploaded as readable as well as writable. This will allow .net code to save images there properly. In other scenarios as well, check that the folder has read and write permissions.

No comments:

Post a Comment