“'无法加载文件或程序集'Elmah'或其依赖项之一。在NuGet中使用Elmah.MVC后,系统找不到指定的文件''

时间:2013-01-09 15:22:48

标签: c# .net asp.net-mvc elmah

我有一个MVC应用程序,我使用http://nuget.org/安装Elmah for MVC,我能够安装它并连续运行它。

几周后重新打开Visual Studio我收到此错误:

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但没有成功。你能指出我如何解决这个问题吗?感谢

1 个答案:

答案 0 :(得分:11)

通过NuGet重新安装Elmah.Mvc将是我的建议。如果这没有用,请尝试重新安装elmah.corelibrary NuGet包(是Elmah.Mvc的依赖项)。