簡體   English   中英

“‘無法加載文件或程序集‘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/為 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM