2

I am using image Magick to create images from Stream. I am getting the error mentioned in title on following lines.

 var image = new MagickImage();

It is an issue with ImageMagick or something else. Dont know how to solve this!!

Kamran
  • 4,010
  • 14
  • 60
  • 112

2 Answers2

4

Workaround: assign user to application pool identity with extra privileges.

Solution (worked for me)

  1. Manually set temp directory MagickNET.SetTempDirectory(@"C:\Windows\Temp\");
  2. Give user of Application Pool Identity write permissions to it. In my case I've provided for "Users" group write permission.
vadru
  • 73
  • 4
  • One other thing to check is that the Application Pool Identity can write to C:\Windows\Temp. The file "Magick.NET-Q16-x64.Native.dll" is created there at run time (In Magick.NET versioned folders). I had to delete my versioned folders and check permissions. – David Brunning Jun 27 '19 at 16:28
0

set "Enable 32-Bit Applications" to true in the advanced settings of your IIS application pool. enter image description here

Jouhar N
  • 311
  • 1
  • 4