Hi,
I am using latest version (__7.0.0.6__) of Magick.NET to convert images from .jpeg to .pbm and .png format. I am happy to use this library as it has saved my lot of time. But On development machine it works like charm. But after deployment, it gives me below error :
```
Failed to load embedded assembly: The type initializer for '<module>' threw an
exception.
at ImageMagick.AssemblyHelper.get_Assembly()
at ImageMagick.MagickImage..ctor(Stream stream)
```
As mentioned in documentation, I have already installed __Visual C++ Redistributable for Visual Studio 2012__. But still it gives me same error.
Can you please help me through this error ?
Comments: ** Comment from web user: dlemstra **
I am using latest version (__7.0.0.6__) of Magick.NET to convert images from .jpeg to .pbm and .png format. I am happy to use this library as it has saved my lot of time. But On development machine it works like charm. But after deployment, it gives me below error :
```
Failed to load embedded assembly: The type initializer for '<module>' threw an
exception.
at ImageMagick.AssemblyHelper.get_Assembly()
at ImageMagick.MagickImage..ctor(Stream stream)
```
As mentioned in documentation, I have already installed __Visual C++ Redistributable for Visual Studio 2012__. But still it gives me same error.
Can you please help me through this error ?
Comments: ** Comment from web user: dlemstra **
Did you install the x86 or x64 version of the C++ redistributable? The AnyCPU version of Magick.NET will load the x86 or x64 assembly from the embedded resource. I will improve the error message to make it report the version it will try to load.