"'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

匆匆过客 提交于 2019-12-12 10:42:25

问题


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.

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" />

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


回答1:


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).



来源:https://stackoverflow.com/questions/14238561/could-not-load-file-or-assembly-elmah-or-one-of-its-dependencies-the-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!