【问题标题】:Update to RC of WebApi causing Could not load type 'System.Web.Http.Dependencies.IDependencyResolver' from assembly error更新到 WebApi 的 RC 导致无法从程序集错误中加载类型“System.Web.Http.Dependencies.IDependencyResolver”
【发布时间】:2012-06-11 16:55:52
【问题描述】:

我最近使用 Nuget 升级到 RC 版本的 WebApi,但现在出现以下错误。

无法加载类型“System.Web.Http.Dependencies.IDependencyResolver” 从程序集'System.Web.Http,版本=4.0.0.0,文化=中性, PublicKeyToken=31bf3856ad364e35'。

使用对象浏览器,我可以看到正确的引用。我尝试重建、清理和清除临时 Internet 文件。

谷歌搜索出现了http://forums.asp.net/t/1810546.aspx/1?Dependency+Resolver+throws+an+error+with+Unity,但这并没有多大帮助。

有人知道这是什么原因吗?

【问题讨论】:

    标签: asp.net asp.net-web-api


    【解决方案1】:

    最后的答案是 MVC 4 冲突,我假设它放在 GAC 中的 dll 优先,卸载 MVC 4 为我解决了问题。

    【讨论】:

      猜你喜欢
      • 2013-05-16
      • 2018-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-05
      • 1970-01-01
      • 1970-01-01
      • 2012-05-05
      相关资源
      最近更新 更多