The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Error in products.aspx

Posted: June 11, 2010 at 3:22 PM Quote #19283
I had a dummy store on 1.5. I upgraded from 1.5 to 1.6 by deleting all the old 1.5 files and uploading 1.6 files. The dB I have kept the same. After that did an upgrade from the install page.

Now when I goto products.aspx, get the following error.



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 91:         <asp:TemplateField HeaderText="<% $NopResources:Admin.Products.Image %>">
Line 92:             <ItemTemplate>
Line 93:                 <asp:Image runat="server" ID="imgProduct" ImageUrl='<%#GetProductImageUrl((Product)Container.DataItem)%>' />
Line 94:             </ItemTemplate>
Line 95:         </asp:TemplateField>



Source File: c:\inetpub\vhosts\onlinebabystore.in\httpdocs\Administration\Modules\Products.ascx    Line: 93

Stack Trace:


[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377630
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture) in F:\Own\NopCommerce\Solution\nopCommerce 1.60-sources\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:396
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 targetSize) in F:\Own\NopCommerce\Solution\nopCommerce 1.60-sources\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:180
   NopSolutions.NopCommerce.Web.Administration.Modules.ProductsControl.GetProductImageUrl(Product product) in F:\Own\NopCommerce\Solution\nopCommerce 1.60-sources\NopCommerceStore\Administration\Modules\Products.ascx.cs:252
   ASP.administration_modules_products_ascx.__DataBinding__control11(Object sender, EventArgs e) in c:\inetpub\vhosts\onlinebabystore.in\httpdocs\Administration\Modules\Products.ascx:93
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +155
   System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2417
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.GridView.DataBind() +4
   NopSolutions.NopCommerce.Web.Administration.Modules.ProductsControl.BindGrid() in F:\Own\NopCommerce\Solution\nopCommerce 1.60-sources\NopCommerceStore\Administration\Modules\Products.ascx.cs:113
   NopSolutions.NopCommerce.Web.Administration.Modules.ProductsControl.Page_Load(Object sender, EventArgs e) in F:\Own\NopCommerce\Solution\nopCommerce 1.60-sources\NopCommerceStore\Administration\Modules\Products.ascx.cs:48
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: June 12, 2010 at 7:13 AM Quote #19315
sound like you will need to re  set the write permission on you images folder
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: June 12, 2010 at 8:02 AM Quote #19320
Thanks. It worked. :)
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.