question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is not possible to load Magick.NET on Mono Framework

See original GitHub issue

Hi,

I’m trying to run the Magick.NET on one of my project. I tried everything to make it work but I didn’t find any solution.

I’m taking this error:

Could not load signature of ImageMagick.MagickImage:ToBitmapSource due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:<unknown type> member:<none> Could not load signature of ImageMagick.IMagickImage:ToBitmapSource due to: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. assembly:PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:<unknown type> member:<none>

When I put PresentationCore.dll to the project folder, error is disappearing but Magick.NET still does not work.

I have Magick.NET files in my project folder. Magick.NET-Q16-HDRI-x64.dll Magick.NET-Q16-HDRI-x64.Native.dll.so Magick.NET-Q16-HDRI-x64.xml

and also libraries are there

linux-vdso.so.1 => (0x00007ffe14f0f000) libMagickCore-7.Q16HDRI.so.4 => /usr/local/lib/libMagickCore-7.Q16HDRI.so.4 (0x00007f7ffa2c3000) libMagickWand-7.Q16HDRI.so.4 => /usr/local/lib/libMagickWand-7.Q16HDRI.so.4 (0x00007f7ff9fb9000) libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f7ff9d60000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7ff9a57000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ff968d000) libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f7ff946b000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7ff9255000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7ff9038000) /lib64/ld-linux-x86-64.so.2 (0x00007f7ffaaa0000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7ff8e34000)

I really don’t know what is wrong… Can you help me?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dlemstracommented, Oct 29, 2017

I never hurts to help. I am happy we could resolve this issue together. Thanks for helping me with this. And this will probably also help other users who want to run Magick.NET with Mono.

0reactions
treasure0010-zzcommented, Jan 17, 2022

Can I use this with Xamarin forms?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load file or assembly 'Magick.NET-x86.DLL' or ...
Magick.NET needs the VC 2012 Runtime installed, and Magick.NET V7+ (.NET 4.0) needs 2012 and the VC 2015 Runtime installed.
Read more >
FAQ: ASP.NET
Yes. And on all the platforms on which mono runs. In Windows you must use XSP as mod_mono does not work with the...
Read more >
.NET Core Image Processing - .NET Blog
NET Framework and in Mono, CoreCompat.System.Drawing also relies on GDI+ on Windows. Caution is therefore advised, for the same reasons. Also ...
Read more >
Resolved - Fail to Load .Net PresentationCore.dll
I believe that it is not possible to use PresentationCore.dll as it is part of the WPF and mono does not implement WPF....
Read more >
Announcing ImageSharp 3.0.0 : r/dotnet
NET Framework (Windows only) or legacy Mono (which primarily impacts Unity) won't be able to use the new features. Unity is notably working...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found