我有一个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但没有成功。你能指出我如何解决这个问题吗?感谢
答案 0 :(得分:11)
通过NuGet重新安装Elmah.Mvc将是我的建议。如果这没有用,请尝试重新安装elmah.corelibrary NuGet包(是Elmah.Mvc的依赖项)。