'MagickImage' could not be found

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

'MagickImage' could not be found

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: 'MagickImage' could not be found

Post by snibgo »

I can't answer the question, but for people who can you should show the code that causes the error.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 'MagickImage' could not be found

Post by dlemstra »

Did you add a reference to Magick.NET through NuGet? It sounds like you forgot to do that.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

Re: 'MagickImage' could not be found

Post 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.
Last edited by nachi on 2016-04-28T22:19:43-07:00, edited 1 time in total.
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

Re: 'MagickImage' could not be found

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 'MagickImage' could not be found

Post 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?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

Re: 'MagickImage' could not be found

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 'MagickImage' could not be found

Post by dlemstra »

You should not add a reference to the Native dll you just need to make sure it is in your bin folder.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

Re: 'MagickImage' could not be found

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 'MagickImage' could not be found

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
nachi
Posts: 6
Joined: 2016-04-28T08:22:19-07:00
Authentication code: 1151

Re: 'MagickImage' could not be found

Post 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?
Post Reply