When I attempt to save an image file to a virtual directory I get "A generic error occurred in GDI+." This seems to be a permission issue, because during the debug process, I changed the file path to my local hard drive and was able to save the file.
The virtual directory is running under a specific domain account, with full control given to the folder and the share.
IIS is serving the images, and I can navigate through the directory structure of the virtual directory in IIS, and also save, rename and delete files in the folder while connected as the domain account.
When I attempt to save the file from the application, does IIS connect as some other user, other than me or the domain account?
Any help with this would be appreciated!
int iImagePercentage = (CROPPED_IMAGE_WIDTH * 100) / this.View.FullSizeImage.Width;
int iThumbnailPercentage = (CROPPED_THUMBNAIL_WIDTH * 100) / this.View.FullSizeImage.Width;
using (System.Drawing.Image articleImage = ImageProcessor.ScaleByPercent(this.View.FullSizeImage, iImagePercentage))
newArticle.ImagePath = System.IO.Path.Combine(this.View.ImageHttpPath, this.View.ImageUploadFilename);