Problem adding product

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Unable to add a pic of a product. Under the "Upload" button there is a salmon colored rectangle with the name of the pic, the size and -http error. Any idea what might cause this?

I now get this error when I go to manage products:
Server Error in '/' Application.
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 64:         <tr>
Line 65:             <td>
Line 66:                 @(Html.Telerik().Grid<ProductModel>(Model.Products.Data)
Line 67:                     .Name("products-grid")
Line 68:                     .Columns(columns =>


Source File: d:\hosting\8241606\html\Administration\Views\Product\List.cshtml    Line: 66

Stack Trace:

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +463678
   Nop.Services.Media.PictureService.GetDefaultPictureUrl(Int32 targetSize, PictureType defaultPictureType) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Media\PictureService.cs:281
   Nop.Services.Media.PictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Media\PictureService.cs:377
   Nop.Admin.Controllers.ProductController.PrepareProductPictureThumbnailModel(ProductModel model, Product product) +89
   Nop.Admin.Controllers.ProductController.<List>b__d(Product x) +34
   System.Linq.WhereSelectListIterator`2.MoveNext() +110
   Telerik.Web.Mvc.UI.Html.<GetEnumerator>d__2.MoveNext() +186
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +87
   Telerik.Web.Mvc.UI.Html.GridDataSectionBuilder.CreateBody(IEnumerable`1 rowBuilders) +81
   Telerik.Web.Mvc.UI.Html.GridDataSectionBuilder.CreateBody(GridRenderingData renderingData) +166
   Telerik.Web.Mvc.UI.Html.GridHtmlBuilder.CreateBody(GridRenderingData renderingData) +13
   Telerik.Web.Mvc.UI.Html.GridHtmlBuilder.AppendData(IHtmlNode div, GridRenderingData renderingData) +84
   Telerik.Web.Mvc.UI.Html.GridHtmlBuilder.CreateGrid(IDictionary`2 htmlAttributes, GridFunctionalData functionalData, GridRenderingData renderingData) +70
   Telerik.Web.Mvc.UI.Grid`1.WriteHtml(HtmlTextWriter writer) +619
   Telerik.Web.Mvc.UI.ViewComponentBase.ToHtmlString() +86
   Telerik.Web.Mvc.UI.ViewComponentBuilderBase`2.ToHtmlString() +22
   Telerik.Web.Mvc.{Dynamic}.GridBuilder`1[[Nop.Admin.Models.Catalog.ProductModel, Nop.Admin, Version=2.3.0.0\, Culture=neutral\, PublicKeyToken=null\]\].IHtmlString.ToHtmlString() +4
   System.Web.HttpUtility.HtmlEncode(Object value) +38
   System.Web.WebPages.WebPageBase.Write(Object value) +64
   ASP._Page_Administration_Views_Product_List_cshtml.Execute() in d:\hosting\8241606\html\Administration\Views\Product\List.cshtml:66
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +65
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8893553
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
12 years ago
https://www.nopcommerce.com/boards/t/14218/system-log-weird-errors.aspx
12 years ago
That seems to be it, thank you. Not sure what happened since I already had 2 products entered.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.