Page 1 of 1

'MagickImage' could not be found

Posted: 2016-04-28T08:33:24-07:00
by nachi
Hi,

I am facing error in the namespace declaration "line using ImageMagick;" , the error are mentioned below.


"The type or namespace name 'MagickImage' could not be found (are you missing a using directive or an assembly reference?)"


Error is showing on the using ImageMagicx line.

Re: 'MagickImage' could not be found

Posted: 2016-04-28T08:47:41-07:00
by snibgo
I can't answer the question, but for people who can you should show the code that causes the error.

Re: 'MagickImage' could not be found

Posted: 2016-04-28T09:22:56-07:00
by dlemstra
Did you add a reference to Magick.NET through NuGet? It sounds like you forgot to do that.

Re: 'MagickImage' could not be found

Posted: 2016-04-28T20:05:08-07:00
by nachi
dlemstra wrote:Did you add a reference to Magick.NET through NuGet? It sounds like you forgot to do that.
Thanks for your reply dlemstra, I am using visual studio 2008, I only add the dll (Reference) to the bin . Did it necessary to add via nugget? If so Please guide me to add.

Re: 'MagickImage' could not be found

Posted: 2016-04-28T22:15:55-07:00
by nachi
snibgo wrote:I can't answer the question, but for people who can you should show the code that causes the error.
Bro, I am only error at this point so I mentioned the lines. I am not bother about sharing entire code (I feel useless of sharing entire code), I found the error so I shared that part. Guide me if I am wrong.

Re: 'MagickImage' could not be found

Posted: 2016-04-29T00:13:45-07:00
by dlemstra
It is not necessary to use NuGet, it is just easier. Are you using the .NET 2.0 version of Magick.NET and did you also add the 'native dll' to your project?

Re: 'MagickImage' could not be found

Posted: 2016-04-29T00:39:19-07:00
by nachi
dlemstra wrote:It is not necessary to use NuGet, it is just easier. Are you using the .NET 2.0 version of Magick.NET and did you also add the 'native dll' to your project?
I try to add the native dll but it showing following error, I tried both Magick.NET-7.0.0.0104-Q8-x86 and Magick.NET-7.0.0.0104-Q16-HDRI-x86. But same error..I am using this reference to web application.

Image

Re: 'MagickImage' could not be found

Posted: 2016-04-29T01:10:32-07:00
by dlemstra
You should not add a reference to the Native dll you just need to make sure it is in your bin folder.

Re: 'MagickImage' could not be found

Posted: 2016-04-29T03:04:23-07:00
by nachi
dlemstra wrote:You should not add a reference to the Native dll you just need to make sure it is in your bin folder.
Yes it is available in bin folder. Did I missing any installation? While developing its worked fine few months before, suddenly I don`t know what is missing while opening it. Is ImageMagick dll is separately available or Magic.net dll contains this?

Are I need to install below one?

http://nextgen.imagemagick.org/script/b ... leases.php

Re: 'MagickImage' could not be found

Posted: 2016-04-29T04:38:07-07:00
by dlemstra
You don't need to install ImageMagick on your machine. That is all included in the Native dll. I don't understand why it is failing for you.

Re: 'MagickImage' could not be found

Posted: 2016-04-29T05:36:32-07:00
by nachi
dlemstra wrote:You don't need to install ImageMagick on your machine. That is all included in the Native dll. I don't understand why it is failing for you.
Or Can I attach my Code Here?