A generic error occurred in GDI+.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hello!

loading of a photo of goods - a mistake

____
A generic error occurred in GDI+.
Полное сообщение:   System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at Nop.Services.Media.PictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture, Nullable`1 useSsl) at Nop.Admin.Controllers.PictureController.AsyncUpload() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

________
How to correct?
11 years ago
Give write permissions to \Content\Images\ and \Content\Images\Thumbs\ directories

https://www.nopcommerce.com/boards/search.aspx?searchterms=a+generic+error+occurred+in+gdi%2b&adv=false&fid=0&w=0&l=0
11 years ago
Tell please how to confer such powers?
It in settings or in Visual Studio?

Thanks
11 years ago
No. This write permission is related Windows ACL. It all depends on your hosting. Here is an example of how it could be done for Arvixe hosting. You can ask your hosting company to grant this permission to the mentioned directories.
11 years ago
Thanks for the help!
When loading photo - it boots and it it is visible on the loading page.
I press to save - doesn't remain!
11 years ago
Understood.
it appears at first it is necessary to click - to add the image, and at then to save.

Thank you very much!
10 years ago
hi , I am suffering the same issue on nopcommerce 3.0 -

http://www.pursesandbags.co.uk/all-styles-4

The url above when I try to browse the pages after a couple of pages the below error comes ... and on check the log it shows A generic error occurred in GDI+.

We're sorry, an internal error occurred.

Our supporting staff has been notified of this error and will address the issue shortly.

We apologize for the inconvenience.

Please try clicking your browsers 'back' button or try reloading the home page.  

If you continue to receive this message, please try again in a little while.

Thank you for your patience.

I tried giving permission to the network service on my windows server 2012 ... but after a couple of pages this error comes on browsing I have no idea why ...

Can someone help me please .. thanks
10 years ago
Check that your seofilename for that picture does not have any strange characters. Mine had "/" in it.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.