Why do I get the error message ‘A generic error occurred in GDI+.’

Platform: ASP.NET|Category: GDI+

Give the proper path of the file. Check your permissions on the server where you are trying to write/read the files