I recently had that same exception. Actually the problem I had was that a program was trying to write a file to a folder that didn't exist. The file was a gif created from the application.
Now you wouldn't guess, but I created the folder and everything went fine. Who would think a Generic GDI+ Exception would really be IO related? :)
Anyway, after Googling a bit I found more people have this problem.
Solving "A Generic Error Occurred In GDI+" Exception[
^]
Perhaps one of these
search results[
^] will help.
The problem with this Exception is that it tells you nothing (I actually think this is a code flaw or even bug in the framework) and you can't tell us anything as a result. So finding help is difficult.
Anyway, check if your code needs (write) access to some files or folders and make sure the file or folder exists and that you have permission to write.
Good luck with this vague Exception!
Hope it helps :)