无法加载弹性魔豆部署文件或程序Magick.Net [英] Could not load file or assembly Magick.Net on Elastic Beanstalk Deployment

查看:298
本文介绍了无法加载弹性魔豆部署文件或程序Magick.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我部署我的项目时,亚马逊弹性魔豆得到以下错误:

I am getting the following error when deploying my project to Amazon Elastic Beanstalk:

Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found.

我在bin文件夹中许多其他的DLL,而这一次是唯一一个抛出这个错误。该DLL没有任何依赖关系,据我所知。

I have many other DLLs in the bin folder, and this one the only one that throws this error. The DLL doesn't have any dependencies as far as I know.

我在本地运行和DLL设置为不复制,在高级选项,像其他DLL时没有得到这个错误。

I don't get this error when running locally and the dll is set to "Do not copy" in the advanced options, like the other DLLs.

我正在运行ASP.NET 4.5 / C#项目

I am running ASP.NET 4.5 / C# Project

弹性魔豆的EC2服务器上运行的Dependency Walker我得到:

Running dependency walker on the EC2 server of the Elastic Beanstalk I get:

如何才能使这个DLL加载启动我的弹性魔豆工程时?

How can I make this dll load when launching my project on Elastic Beanstalk?

推荐答案

指定的模块找不到。

这通常意味着模块指定(Magick.NET-x86.DLL)不是问题,而是Magick.NET-x86.DLL的依赖无法找到。具体而言,非基于CLR的依赖

This normally implies that the module specified (Magick.NET-x86.DLL) isn't the issue, but rather a dependency of Magick.NET-x86.DLL cannot be found. Specifically, a non CLR based dependency.

确定本地的依赖,最好的办法是依赖浏览器。你可以在这里找到一个: http://www.dependencywalker.com/

The best way to determine native dependencies is with a dependency viewer. You can find one here: http://www.dependencywalker.com/

在程序的Depends.exe打开Magick.NET-x86.DLL,并期待在相关性。如果你不能在亚马逊的实例做到这一点,你必须做你的电脑上。确保所有依赖的位置,以及同一文件夹中的应用程序.EXE

Open the Magick.NET-x86.DLL in the depends.exe program and look at the dependencies. If you can't do this on the amazon instance, you'll have to do it on your PC. Make sure that all dependencies are located, and exist within the same folder as the application .EXE

我没有这从他们的网站上下载以下文件:Magick.NET-6.8.8.701-Q16-64-net40客户端

I did this with the following file downloaded from their website: Magick.NET-6.8.8.701-Q16-x64-net40-client

根据我看到的时候我做到这一点,最有可能的罪魁祸首是没有的C ++ 2012运行时depencies。请注意,这是运行在最新的64位的DLL我从他们的网站下载。如果您使用的是较旧的版本,它可能是一个不同的运行。

Based on the depencies I see when I do this, the most likely culprit is not having the C++ 2012 runtime. Note that this runtime is for the latest 64bit DLL i downloaded from their website. If you are using an older version it may be a different runtime.

要找出正确的运行,谷歌C ++的DLL名称。例如。 MSVCP110.dll == 2012

To find out the correct runtime, google the c++ DLL name. E.g. MSVCP110.dll == 2012

http://www.microsoft.com/en-我们/下载/ details.aspx?ID = 30679

这篇关于无法加载弹性魔豆部署文件或程序Magick.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆