[英]Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot find the file specified
[英]"'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/为 MVC 安装 Elmah,我能够安装并连续运行它。
几周后重新打开 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 的引用,但没有成功。 你能指出我如何解决这个问题吗? 谢谢
通过NuGet重新安装Elmah.Mvc将是我的建议。 如果这没有用,请尝试重新安装elmah.corelibrary NuGet包(是Elmah.Mvc的依赖项)。
我的项目使用的是 Elmah.Io.Log4Net。 我在“系统找不到指定的文件”上方收到相同的错误消息。 我安装了 Elmah.Io.Mvc 4.3.40 版本,错误消失了。 因此,Elmah.Io 中也出现了与旧版 Core 中相同的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.