MagickNet type initializer throws exception
Posted: 2013-05-03T12:13:24-07:00
Hi:
I have downloaded Magick.Net.dll and Magick.Net.Web.dll v 6.8.3.10. As the site requests, I have installed VC++ Redistributable for VS2012 X86.
I have created an ASP.NET web application and added references to the above 2 dlls.
The following code blows up on the second line:
The error is "The type initializer for 'ImageMagick.MagickImage' threw an exception."
it does not matter if i insert an image file path in the constructor call. I've tried .NET 4, .NET 4.5.
I'm using VS2012 on a 64-bit Windows 7 system.
I must be missing something really fundamental. Can someone help me out?
Thanks in advance,
Terry
I have downloaded Magick.Net.dll and Magick.Net.Web.dll v 6.8.3.10. As the site requests, I have installed VC++ Redistributable for VS2012 X86.
I have created an ASP.NET web application and added references to the above 2 dlls.
The following code blows up on the second line:
Code: Select all
MagickNET.Initialize(@"C:\..."); // this line is OK
MagickImage img = new MagickImage();
it does not matter if i insert an image file path in the constructor call. I've tried .NET 4, .NET 4.5.
I'm using VS2012 on a 64-bit Windows 7 system.
I must be missing something really fundamental. Can someone help me out?
Thanks in advance,
Terry