You have no items in your shopping cart.

Friday, November 22, 2024 9:32:40 AM

Error. OptimizePicture

Posted: 3 years ago

#11541 Quote

kh.s

Posted: 3 years ago

#11541 Quote
Hi
i want manually minify picture with url, but i get this error
Error. The file 'C:\....jpeg' wasn't minify. Error=The type initializer for 'NativeMagickSettings' threw an exception.

And these addresses are correct for extra folders?
~\wwwroot\images\uploaded\
~\wwwroot\images\thumbs\
~\Themes\Venture\Content\img\

thank you

Posted: 3 years ago

#11542 Quote

Support

Posted: 3 years ago

#11542 Quote
1. What nop version do you use?
2. Do you use Linux or Windows hosting?

Posted: 3 years ago

#11543 Quote

kh.s

Posted: 3 years ago

#11543 Quote
hi again
nopCommerce version 4.40.4
windows server 2016

Posted: 3 years ago

#11544 Quote

Support

Posted: 3 years ago

#11544 Quote
Check if you use x64 mode
[url=/howtousex64mode]Link[/url]

Posted: 3 years ago

#11545 Quote

kh.s

Posted: 3 years ago

#11545 Quote
was correct, Enable 32-bit App is false

Posted: 3 years ago

#11546 Quote

Support

Posted: 3 years ago

#11546 Quote
Send me the full error message.

Posted: 3 years ago

#11547 Quote

kh.s

Posted: 3 years ago

#11547 Quote
I tested 2 more times today, 1 time was right and then not again

System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception.
---> System.TypeInitializationException: The type initializer for 'X64' threw an exception.
---> System.MissingMethodException: Method not found: 'System.Security.AccessControl.DirectorySecurity System.IO.DirectoryInfo.GetAccessControl()'.
   at ImageMagick.NativeLibraryLoader.GrantEveryoneReadAndExecuteAccess(String cacheDirectory)
   at ImageMagick.NativeLibraryLoader.CreateCacheDirectory()
   at ImageMagick.NativeLibraryLoader.ExtractLibrary()
   at ImageMagick.NativeLibraryLoader.Load()
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.NativeEnvironment.Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at FoxNetSoft.Plugin.Misc.Pagespeed.Services.MinifyOptimizationService.OptimizeImageAsync(String fileName)

Posted: 3 years ago

#11548 Quote

Support

Posted: 3 years ago

#11548 Quote
Do you use Azure or Windows Server 2016?

Posted: 3 years ago

#11549 Quote

kh.s

Posted: 3 years ago

#11549 Quote
windows server 2016

Posted: 3 years ago

#11550 Quote

Support

Posted: 3 years ago

#11550 Quote
Download the version 2.0 and try it

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved