version 1.11 - Problem with product display

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 yıl önce
Problem description:

-----------------------------------------------------------------------------------------------------------------------------------------
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:


Line 201:                        Graphics g = Graphics.FromImage(newBitMap);
Line 202:                        g.DrawImage(b, 0, 0, newSize.Width, newSize.Height);
Line 203:                        newBitMap.Save(Path.Combine(PictureManager.LocalThumbImagePath, localFilename), ImageFormat.Jpeg);
Line 204:                        newBitMap.Dispose();
Line 205:                        b.Dispose();

Source File: C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\Libraries\Nop.Common\Media\PictureManager.cs    Line: 203

-----------------------------------------------------------------------------------------------------------------------------------------


replicate the problem, please go to www.partsurf.co.nz and click on detailed product...

I installed 1.11 by copying all files to virtual directory, and IIS also unpacked the whole thing, I followed the installation wizard.

Any help is appreciated., thank you.
15 yıl önce
here is the stack trace:

Stack Trace:
----------------------------------------------------------------------------------------------------------------------

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377630
   System.Drawing.Image.Save(String filename, ImageFormat format) +69
   NopSolutions.NopCommerce.Common.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize, Boolean showDefaultPicture) in C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\Libraries\Nop.Common\Media\PictureManager.cs:203
   NopSolutions.NopCommerce.Web.Modules.ProductBox1Control.BindData() in C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\NopCommerceStore\Modules\ProductBox1.ascx.cs:76
   NopSolutions.NopCommerce.Web.Modules.ProductBox1Control.DataBind() in C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\NopCommerceStore\Modules\ProductBox1.ascx.cs:56
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +125
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +459
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +54
   System.Web.UI.WebControls.BaseDataList.DataBind() +55
   NopSolutions.NopCommerce.Web.Templates.Categories.ProductsInGrid.BindData() in C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\NopCommerceStore\Templates\Categories\ProductsInGrid.ascx.cs:120
   NopSolutions.NopCommerce.Web.Templates.Categories.ProductsInGrid.Page_Load(Object sender, EventArgs e) in C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\NopCommerceStore\Templates\Categories\ProductsInGrid.ascx.cs:44
   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) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

----------------------------------------------------------------------------------------------------------------------
15 yıl önce
I sort of figured out why...

the site's absolute address: C:\inetpub\wwwroot\nopCommerce_1.11\NopCommerceStore


the address the code tried to trace back is  C:\Users\Administrator\Documents\Downloads\nopCommerce_1.11\NopCommerceStore\Modules\ProductBox1.ascx

which should be C:\inetpub\wwwroot\nopCommerce_1.11\NopCommerceStore\Modules\ProductBox1.ascx

weird, how do I fix?


I'll try unzipping the file directly to the C:\inetpub\wwwroot\nopCommerce_1.11\
and reinstall the site again...and see what happens..
15 yıl önce
problem sorted...

sorry I mixed version 1.10 with 1.11....

reinstalled everything again and things working beautifully now.

thanks nopcommerce team.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.