A generic error occured in GDI+ (Version 1.9 Upgrade)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Following is an error I've encountered while fixing the CSS differences in the upgrade from 1.8 to 1.9.  I know it is a CSS related problem as I'm not seeing the problem when using the NopCommerce default template, only my modified one which does work fine under the version 1.8.

Would be great if someone can point me in the right direction on this one.


Cheers,

Paul


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:

Line 84:                           {%>
Line 85:                         <td class="productpicture">
Line 86:                             <asp:Image ID="iProductVariantPicture" runat="server" ImageUrl='<%#GetProductVariantImageUrl((ShoppingCartItem)Container.DataItem)%>'
Line 87:                                 AlternateText="Product picture" />
Line 88:                         </td>


Source File: c:\inetpub\aquaticexplorers_shop.1.9_New\Modules\OrderSummary.ascx    Line: 86

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.PictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture) +2652
   NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.GetProductVariantImageUrl(ShoppingCartItem shoppingCartItem) +198
   ASP.modules_ordersummary_ascx.__DataBinding__control5(Object sender, EventArgs e) in c:\inetpub\aquaticexplorers_shop.1.9_New\Modules\OrderSummary.ascx:86
   System.Web.UI.Control.OnDataBinding(EventArgs e) +91
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +127
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +478
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
   System.Web.UI.WebControls.Repeater.DataBind() +76
   NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.BindData() +206
   NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.OnInit(EventArgs e) +47
   System.Web.UI.Control.InitRecursive(Control namingContainer) +140
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Control.InitRecursive(Control namingContainer) +311
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
12 years ago
CSS problems are client side. Your errors are server side. Your error relates to system.drawing. If I had to guess it appears that picture manager is having some sort of problem processing an image. Could be a non supported file type.
12 years ago
Two possible scenarios:
1. There's some problems with your product variant (not product) picture. Go to admin area, then your product variant details page and ensure that uploaded picture is OK. Can you open this detalis page?
2. Permission error - https://www.nopcommerce.com/boards/search.aspx?searchterms=gdi%2b
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.