Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Failed to load embedded assembly: The type initializer for 'ImageMagick.MagickNET' threw an exception.

$
0
0
Hi,
I am facing an issue with Magick.Net x64 dll not getting loaded when accessing from IIS. Here are the details:
Machine Details: Windows 7 SP1 (x64)
  1. Installables.png - The Installables have both x86 and x64 installed as redistributable on my machine.
  2. FailToLoadAssembly.jpg - This shows the exception thrown by ImageMagick.MagickImage class constructor when attempting to load assembly.
  3. StackTrace.jpg - Attached is the stacktrace that we are seeing.
  4. TempLocationInformation.jpg - Note that Environment.Is64bitProcess is true & ImageMagick cache directory is set to "C:\Windows\Temp" as expected. Also; it has "Magick.Net-Q16-x64.dll"
All this happens only when loading the web site from IIS; however; if the site is executed from Visual Studio 2012 development environment; the cache directory location changes to
"C:\Users\<username>\AppData\Local\Temp" and the x86 dll is loaded in here which makes it work.

Kindly suggest any fix / missing section in here which is not allowing it work when loading the web site from IIS.

Attempts made:
  1. Turning the IIS application pool from Enable 32 bit = false to true does not work for us as we are expected to load the application pool as 64 bit.
  2. Attempts made to change the cache directory by setting it explicitly to appdata\local\temp throws an exception - could not find directory
Attachment(s): Details.zip having all screenshots in it.
http://1drv.ms/1tJLD53

Regards,
Mandaar Jani

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>