This project has moved. For the latest updates, please go here.

Run error on windows servier 2008 r2

May 5, 2014 at 6:44 AM
Edited May 5, 2014 at 6:48 AM
Local environment everything is normal,
Deployed to a server error occurred

The Winfrom Project
Operating Environment Windows 2008 r2 x64
.Net4.0
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'ImageMagick.Types' threw an exception. ---> System.TypeInitializationException: The type initializer for 'ImageMagick.AssemblyHelper' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Magick.NET-Q16-x64.dll' or one of its dependencies. 找不到指定的模块。
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ImageMagick.AssemblyHelper..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.AssemblyHelper.GetType(String name)
   at ImageMagick.Types..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickImage..ctor(Stream stream)
   at Cloud7.Demo.ImageResizer.ImageMagickTool.Resize(ImageResizeArgs args, Stream stream) in e:\Job\Cloud7\Cloud7.Demo.ImageResizer\Cloud7.Demo.ImageResizer\ImageMagickTool.cs:line 17
   at Cloud7.Demo.ImageResizer.Form1.MediaImageModel.Convert(Stream stream, ImageSizeType imageSizeType) in e:\Job\Cloud7\Cloud7.Demo.ImageResizer\Cloud7.Demo.ImageResizer\Form1.cs:line 360
   at Cloud7.Demo.ImageResizer.Form1.Convert(ImageSizeType imageSizeType) in e:\Job\Cloud7\Cloud7.Demo.ImageResizer\Cloud7.Demo.ImageResizer\Form1.cs:line 98
   at Cloud7.Demo.ImageResizer.Form1.btn_Small_Click_1(Object sender, EventArgs e) in e:\Job\Cloud7\Cloud7.Demo.ImageResizer\Cloud7.Demo.ImageResizer\Form1.cs:line 38
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Coordinator
May 5, 2014 at 7:25 AM
Did you install the Visual C++ Redistributable for Visual Studio on your production server as described here: https://magick.codeplex.com/documentation?