A generic error occurred in GDI+

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hello GUys,

Please help me out here, got the site up and running then suddenly this problem and it won't go away.

Given ASP.NET/Network Service/IUSR have modify permissions on the /images and /App_Themes/darkOrange/images



Server Error in '/' Application.
A generic error occurred in GDI+.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +461268
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture) +2471
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 targetSize) +44
   NopSolutions.NopCommerce.Web.Templates.Products.OneVariant.BindProductInfo(Product product) +1278
   NopSolutions.NopCommerce.Web.Templates.Products.OneVariant.BindData() +248
   NopSolutions.NopCommerce.Web.Templates.Products.OneVariant.Page_Load(Object sender, EventArgs e) +83
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
13 years ago
try search forums "GDI+"
13 years ago
Is this happening when you try and save an image or all the time?
13 years ago
please see next topics
https://www.nopcommerce.com/boards/t/4933/unhandled-exception-160-on-picture-upload.aspx
https://www.nopcommerce.com/boards/t/2358/gdi-error-after-installation-when-tryign-to-access-default-page.aspx
13 years ago
I solved the problem giving WRITE permission to user IIS on the IMAGES folder
10 years ago
Also, Check that your seofilename for that picture does not have any strange characters. Mine had "/" in it.

I ran this:


update Picture set SeoFilename = REPLACE(SeoFilename,'/','-')
6 years ago
Grant write permissions to \Content\Images\ and \Content\Images\Thumbs\ directories
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.