Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: The type or namespace name 'ImageMagick' could not be found

$
0
0
Are you really sure that your application is running in 64 bit?
Yes, I verified it in three different ways:
  1. From visual studio: Tools | Options | Projects and Solutions | Web Projects | Use the 64 bit version of IIS Express
  2. Using code:
if (IntPtr.Size == 8) 
{    // 64 bit machine
} 
else if (IntPtr.Size == 4) 
{    // 32 bit machine
}
  1. More code:
Environment.Is64BitProcess
Code taken from: http://stackoverflow.com/questions/266082/how-do-i-tell-if-my-application-is-running-as-a-32-bit-or-64-bit-application
Which version of the library do you see in this folder: %temp%\Magick.NET.net40-client.7.0.4.701? That folder is created by the AnyCPU library.
I cleaned up the %temp% folder and when I installed AnyCPU from Nuget, there are are no Magick.NET folders created within the %temp% folder.
The native dll will be copied to the bin directory when your project is being build. The .targets file that does this should be added to your csproj file.
In visual studio, I created it as a "Web Site" instead of "Web Application Project". Hence I do not have a .csproj file. The "Web Site" (as you know) automatically compiles all files dynamically on run time.

Environment: Windows 10, Visual studio 2015 community edition update 3 running .Net Framework 4.6.2.

Is there any other info I can provide? Please let me know. Thank you.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>