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: spidercode **
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: spidercode **
Hi,
I was able to resolve issue. The problem was that 'Microsoft Identity Foundation' was not installed on the server which is being used my application. But still I don't understand why ImageMagick was giving me exception for that ?
Anyways thank you for your suggestions :)
Regards,
SpiderCode