Hi,
I'm trying to move a solution on an IIS server, however when running, I get the following error:
System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Magick.NET.net40-client.7.0.0.0104\Magick.NET-Q16-x64.Native.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at ImageMagick.NativeLibraryLoader.WriteAssembly(String tempFile)
at ImageMagick.NativeLibraryLoader.ExtractLibrary()
--- End of inner exception stack trace ---
at ImageMagick.MagickSettings.NativeMethods.X64.MagickSettings_Create()
at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
at ImageMagick.MagickSettings..ctor()
I appreciate your cooperation as my PC deployed without any problem.
And I deployed the Visual C ++ Redistributable x86 and x64
Regards!
Comments: Can you take a look at the 'AnyCPU' part in the documentation (https://magick.codeplex.com/documentation) and see if that resolves your issue? p.s. You no longer need to install the Visual C ++ Redistributable in the recent versions. And I would also advise you to upgrade to the most recent version.
I'm trying to move a solution on an IIS server, however when running, I get the following error:
System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Magick.NET.net40-client.7.0.0.0104\Magick.NET-Q16-x64.Native.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at ImageMagick.NativeLibraryLoader.WriteAssembly(String tempFile)
at ImageMagick.NativeLibraryLoader.ExtractLibrary()
--- End of inner exception stack trace ---
at ImageMagick.MagickSettings.NativeMethods.X64.MagickSettings_Create()
at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
at ImageMagick.MagickSettings..ctor()
I appreciate your cooperation as my PC deployed without any problem.
And I deployed the Visual C ++ Redistributable x86 and x64
Regards!
Comments: Can you take a look at the 'AnyCPU' part in the documentation (https://magick.codeplex.com/documentation) and see if that resolves your issue? p.s. You no longer need to install the Visual C ++ Redistributable in the recent versions. And I would also advise you to upgrade to the most recent version.