Are you really sure that your application is running in 64 bit?Yes, I verified it in three different ways:
-
From visual studio: Tools | Options | Projects and Solutions | Web Projects | Use the 64 bit version of IIS Express
-
Using code:
if (IntPtr.Size == 8)
{ // 64 bit machine
}
else if (IntPtr.Size == 4)
{ // 32 bit machine
}
- 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-applicationWhich 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.