"“无法加载文件或程序集”ELMAH“或它的一个依赖。该系统找不到指定'“的文件中的NuGet使用Elmah.MVC后 [英] "'Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot find the file specified'' after using Elmah.MVC in NuGet
问题描述
我有一个MVC应用程序,我用 http://nuget.org/ 安装ELMAH的MVC,我能够安装并先后运行它。
I have a MVC app, I used http://nuget.org/ to install Elmah for MVC, I Was able to install it and run it successively.
每周少重新打开Visual Studio中后,我得到这个错误:
After few week reopening Visual Studio I Get this error:
Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot find the file specified.
Error
<httpModules>
Line 73: <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
我试图在项目Elmah.Mvc但没有成功添加一个引用。你能告诉我要如何解决这个问题?谢谢
I tried to add a reference in the project to Elmah.Mvc but with no success. Could you point me out how to fix this problem? Thanks
推荐答案
通过重新安装的NuGet将Elmah.Mvc是我的忠告。如果这没有帮助,请尝试重新安装elmah.corelibrary的NuGet包(即Elmah.Mvc的依赖)。
Reinstall Elmah.Mvc via NuGet would be my advice. If this doesn't help, try reinstalling the elmah.corelibrary NuGet package (being a dependency of Elmah.Mvc).
这篇关于&QUOT;“无法加载文件或程序集”ELMAH“或它的一个依赖。该系统找不到指定'“的文件中的NuGet使用Elmah.MVC后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!