Erroring out when looking at product categories

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 年 前
I am getting an "sorry internal error message", when attempting to view current product categories... I attached the log, any ideas?



Log type:  Unknown  
Severity:  11  
Message:  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.GetPictureUrl(Picture picture, Int32 TargetSize, Boolean showDefaultPicture) in F:\Own\NopCommerce\Solution\Solution\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 307 at NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize) in F:\Own\NopCommerce\Solution\Solution\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 131 at NopSolutions.NopCommerce.Web.Administration.Modules.CategoryInfoControl.BindData() in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Administration\Modules\CategoryInfo.ascx.cs:line 53 at NopSolutions.NopCommerce.Web.Administration.Modules.CategoryInfoControl.Page_Load(Object sender, EventArgs e) in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Administration\Modules\CategoryInfo.ascx.cs:line 88 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.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.administration_categorydetails_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6373a124\b006b4b\App_Web_kdom1qwl.47.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
14 年 前
it's probably because your image folder hasn't got full modify/write permissions
14 年 前
I got the following error when I am adding a new categories. We have already given full write permission to Images and images\thumbs folders

[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 C:\DRIVE\Projects\MinMax Groceries\Source Code\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:306
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize) in C:\DRIVE\Projects\MinMax Groceries\Source Code\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:131
   NopSolutions.NopCommerce.Web.Administration.Modules.CategoryInfoControl.BindData() in C:\DRIVE\Projects\MinMax Groceries\Source Code\NopCommerceStore\Administration\Modules\CategoryInfo.ascx.cs:52
   NopSolutions.NopCommerce.Web.Administration.Modules.CategoryInfoControl.Page_Load(Object sender, EventArgs e) in C:\DRIVE\Projects\MinMax Groceries\Source Code\NopCommerceStore\Administration\Modules\CategoryInfo.ascx.cs:88
   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.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

Please help me reslove the problem.. Also I got the following error in Homepage as well..

ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377630
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetDefaultPictureUrl(PictureTypeEnum DefaultPictureType, Int32 TargetSize) in C:\DRIVE\Projects\MinMax Groceries\Source Code\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:211
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize, Boolean showDefaultPicture) in C:\DRIVE\Projects\MinMax Groceries\Source Code\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:234
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Int32 imageId, Int32 TargetSize, Boolean showDefaultPicture) in C:\DRIVE\Projects\MinMax Groceries\Source Code\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:144
   NopSolutions.NopCommerce.Web.Modules.HomePageCategories.dlCategories_ItemDataBound(Object sender, DataListItemEventArgs e) in C:\DRIVE\Projects\MinMax Groceries\Source Code\NopCommerceStore\Modules\HomePageCategories.ascx.cs:65
   System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) +8670790
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +137
   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.Modules.HomePageCategories.BindData() in C:\DRIVE\Projects\MinMax Groceries\Source Code\NopCommerceStore\Modules\HomePageCategories.ascx.cs:52
   NopSolutions.NopCommerce.Web.Modules.HomePageCategories.Page_Load(Object sender, EventArgs e) in C:\DRIVE\Projects\MinMax Groceries\Source Code\NopCommerceStore\Modules\HomePageCategories.ascx.cs:42
   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.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Thanks,
Anand
14 年 前
Did you find a solution for your problem as i am having the same problem when creating or chaning the images for a category.
14 年 前
still looks like a permission problem - grant ( or ask your hosting provider to grant) write permissions to images/thumbs directory
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.