adding new product

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
When I'd added new product and saved it, and i returned to public area and click on category where should be added product i get this error:

Exception of type 'System.Web.HttpUnhandledException' was thrown.
Exception:  System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetDefaultPictureUrl(PictureTypeEnum defaultPictureType, Int32 targetSize) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 298 at NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetDefaultPictureUrl(Int32 targetSize) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 239 at NopSolutions.NopCommerce.Web.Modules.ProductBox2Control.BindData() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Modules\ProductBox2.ascx.cs:line 70 at NopSolutions.NopCommerce.Web.Modules.ProductBox2Control.DataBind() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Modules\ProductBox2.ascx.cs:line 49 at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at NopSolutions.NopCommerce.Web.Templates.Categories.ProductsInLines1.BindData() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Templates\Categories\ProductsInLines1.ascx.cs:line 160 at NopSolutions.NopCommerce.Web.Templates.Categories.ProductsInLines1.Page_Load(Object sender, EventArgs e) in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Templates\Categories\ProductsInLines1.ascx.cs:line 48 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.category_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Please help me :)
13 years ago
Hi,

I think it is a permission error


on your hosting account, you need to allow read/write permission to your images folder to allow the system to write images to it

- hayden
13 years ago
Thank you very much :) Now it's working :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.