Hi Munendra,
We just found out that the exception occurred due to security restrictions. The IUSR_MachineName should have write access on the directory where you want to save the image files.
Just to verify, please run the simple code below to create and save a bitmap image.
System.Drawing.Bitmap bm = new Bitmap(200,200);
bm.Save(Server.MapPath("TestSave.jpg"),
System.Drawing.Imaging.ImageFormat.Jpeg);
It can be fixed by setting the permissions in IIS Manager. Please let me know if it works for you.
Best Regards,
Saqib Razzaq
Support Developer, Aspose Sialkot Team
http://www.aspose.com
Your File Format Experts