asp.net mvc 4 - Magick.NET-x64 is throwing a "dll not found" exception when deployed -
when deploy (using web deploy) asp.net web api project, following error (see stack trace below)
server error in '/images.mysite.com' application. not load file or assembly 'magick.net-x64.dll' or 1 of dependencies. specified module not found. description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code. exception details: system.io.filenotfoundexception: not load file or assembly 'magick.net-x64.dll' or 1 of dependencies. specified module not found. source error: unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below. stack trace: [filenotfoundexception: not load file or assembly 'magick.net-x64.dll' or 1 of dependencies. specified module not found.] system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +0 system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, runtimeassembly reqassembly, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) +210 system.reflection.runtimeassembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean forintrospection) +242 system.reflection.runtimeassembly.internalload(string assemblystring, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) +17 system.reflection.assembly.load(string assemblystring) +35 system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +122 [configurationerrorsexception: not load file or assembly 'magick.net-x64.dll' or 1 of dependencies. specified module not found.] system.web.configuration.compilationsection.loadassemblyhelper(string assemblyname, boolean stardirective) +12762790 system.web.configuration.compilationsection.loadallassembliesfromappdomainbindirectory() +503 system.web.configuration.assemblyinfo.get_assemblyinternal() +142 system.web.compilation.buildmanager.getreferencedassemblies(compilationsection compconfig) +334 system.web.compilation.buildmanager.callprestartinitmethods(string prestartinitlistpath) +203 system.web.compilation.buildmanager.executepreappstart() +152 system.web.hosting.hostingenvironment.initialize(applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters, policylevel policylevel, exception appdomaincreationexception) +1151 [httpexception (0x80004005): not load file or assembly 'magick.net-x64.dll' or 1 of dependencies. specified module not found.] system.web.httpruntime.firstrequestinit(httpcontext context) +12883252 system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +159 system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +12724313 version information: microsoft .net framework version:4.0.30319; asp.net version:4.0.30319.17929
my server windows server 2008 r2 standard
running iis : windows server 2008 r2 standard
my project properties are:
configuration: active(debug)
platform:active(x64)
platform target: x64
warning level: 4
output pasth: bin\
treat warnings errors : none
generate seriealization assembly: auto
on side note, when publish project i’ve noticed “imagemagick (magick.net-x64)” not showing in package manifest. strange? hell?
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="entityframework" version="5.0.0" targetframework="net45" /> <package id="etstracelogger" version="1.0.0" targetframework="net45" /> <package id="microsoft.aspnet.mvc" version="4.0.20710.0" targetframework="net45" /> <package id="microsoft.aspnet.razor" version="2.0.20710.0" targetframework="net45" /> <package id="microsoft.aspnet.web.optimization" version="1.0.0" targetframework="net45" /> <package id="microsoft.aspnet.webapi" version="4.0.20710.0" targetframework="net45" /> <package id="microsoft.aspnet.webapi.client" version="4.0.20710.0" targetframework="net45" /> <package id="microsoft.aspnet.webapi.core" version="4.0.30506.0" targetframework="net45" /> <package id="microsoft.aspnet.webapi.odata" version="4.0.30506" targetframework="net45" /> <package id="microsoft.aspnet.webapi.webhost" version="4.0.20710.0" targetframework="net45" /> <package id="microsoft.aspnet.webpages" version="2.0.20710.0" targetframework="net45" /> <package id="microsoft.data.edm" version="5.2.0" targetframework="net45" /> <package id="microsoft.data.odata" version="5.2.0" targetframework="net45" /> <package id="microsoft.net.http" version="2.0.20710.0" targetframework="net45" /> <package id="microsoft.web.infrastructure" version="1.0.0.0" targetframework="net45" /> <package id="newtonsoft.json" version="4.5.6" targetframework="net45" /> <package id="system.spatial" version="5.2.0" targetframework="net45" /> <package id="webgrease" version="1.1.0" targetframework="net45" /> </packages>
any in deployment of magick.net-x64 based application appreciated.
oh...
i fixed installing following,
http://www.microsoft.com/en-us/download/details.aspx?id=30679
hope helps!
Comments
Post a Comment