Home » FAQ » ASP.NET » GDI+ » Why do I get the error message ‘CS0122: ‘System.Drawing.Imaging.ImageFormat.jpeg’ is inaccessible due to its protection level ‘
Try giving the proper file path for the image. Also make sure you have proper permissions on that file.
Share with