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)