Could not load file or assembly 'System.Web.Helpers' or one of its dependencies [duplicate]

我们两清 提交于 2020-01-05 18:14:28

问题


The web application is working fine in my VS2010, but when I hosted it on server it shows error below

Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.


回答1:


Sounds as MVC has not been installed on the server. and The dll is missing in the published (deployed environment). That is the reason why it is working in the local.

Solution - Copy reference to local

  1. Right click on reference System.Web.Helpers and select Properties
  2. Change Copy Local to true.
  3. Build Solution
  4. Re-dploy solution


来源:https://stackoverflow.com/questions/25261025/could-not-load-file-or-assembly-system-web-helpers-or-one-of-its-dependencies

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