Why do I get the error message ‘CS0122: ‘System.Drawing.Imaging.ImageFormat.jpeg’ is inaccessible due to its protection level ‘

Platform: ASP.NET|Category: GDI+

Try giving the proper file path for the image. Also make sure you have proper permissions on that file.