[ExternalException (0x80004005): A generic error occurred in GDI+.] IpitchitImageHandler.Data.ImageRepository.AddNewTempImage(Stream image, String extension, Guid
I've got the same error just now and Google help me to find answer: Loading/Saving bitmap causes the locked file.
Workaround is create othe bitmap, save and let it release:
Bitmap tmp = new Bitmap(bitmapToBeSaved); tmp.SaveToFile(fileName);