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

Can we Bin Deploy the library without installing anything on server?

Jun 16, 2013 at 11:28 AM
Is there a way to upload only the dll to web server without installing any exe?
Coordinator
Jun 16, 2013 at 2:52 PM
You need to install Visual C++ Redistributable for Visual Studio 2012 (x86 or x64) on your webserver. And if you want to read pdf/eps you also need to install GhostScript.
Jun 16, 2013 at 3:06 PM
Is you have any working sample image re-sizing in ASP.NET 4.0 or 4.5. I have installed C++ Redistributable for Visual Studio 2012 (x86 or x64) and then installed https://nuget.org/packages/Magick.NET-Q16-x64/ package but i am getting,

Could not load file or assembly 'Magick.NET' or one of its dependencies. An attempt was made to load a program with an incorrect format.

If I make Enable 32-bit Application False(Yes I have set this False) then I will get,

[SEHException (0x80004005): External component has thrown an exception.]
Magick.Image.{ctor}(Image* ) +0
ImageMagick.MagickImage..ctor(String fileName) +63
ASPNET4Sample.WebForm1.Page_Load(Object sender, EventArgs e) in c:\Users\user\Documents\Visual Studio 2012\Projects\ASPNET4Sample\ASPNET4Sample\WebForm1.aspx.cs:18
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

Here is my code,
    protected void Application_Start(object sender, EventArgs e)
    {
        MagickNET.Initialize(AppDomain.CurrentDomain.BaseDirectory+"Bin\\ImageMagick");
    }
protected void Page_Load(object sender, EventArgs e)
    {
        if (File.Exists(Server.MapPath("~/maps.png")))
        {
            var image = new MagickImage(Server.MapPath("~/maps.png"));
            image.Resize(50, 50);
        }
    }
Coordinator
Jun 16, 2013 at 3:49 PM
Edited Jun 16, 2013 at 7:55 PM
It looks like ImageMagick cannot find the directory that contains the ImageMagick files. Did you try calling MagickNET.Initialize without any parameters? And can you temporary move the method call to your Page_Load? Application_Start only happens once so you might have missed the exception.

Edit:
I noticed your vote on the 'Include all files in the dll' issue. I managed to get it to work and the next release will only contain the xml files from imagemagick and not the dll's. Maybe that will resolve your problems.
Jun 17, 2013 at 7:56 AM
Edited Jun 17, 2013 at 7:56 AM
Did you try calling MagickNET.Initialize without any parameters? And can you temporary move the method call to your Page_Load?
Still same error. But some time I get M_MOD_RL_tile_.dll is not found error.
I noticed your vote on the 'Include all files in the dll' issue. I managed to get it to work and the next release will only contain the xml files from imagemagick and not the dll's. Maybe that will resolve your problems.
Note sure
Coordinator
Jun 17, 2013 at 8:34 AM
Does the file 'IM_MOD_RL_tile_.dll' exist in your ImageMagick folder in your bin directory?
Jun 17, 2013 at 9:00 AM
Edited Jun 17, 2013 at 9:05 AM
No, it doesn't. BTW, you are doing good job but I think you need to make sample applications available. Not all users(like me) will try very hard to make a simple thing work. Users will simply switch to another library. I appreciate your work but you have to work hard to make it work easily for novice users.
Coordinator
Jun 17, 2013 at 10:26 AM
Edited Jun 17, 2013 at 10:28 AM
I have to agree with you that it is not that easy to get this library to work for a novice user. I hope that with a static build using this library will become a lot easier. It is also a good idea to create some sample applications. I will add a NuGet package that contains examples for a web and a console application.
Coordinator
Jun 17, 2013 at 10:28 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jun 17, 2013 at 10:33 AM
Thanks