【问题标题】:"Could not load file or assembly" error when installing Google.api.customsearch.v1 client library安装 Google.api.customsearch.v1 客户端库时出现“无法加载文件或程序集”错误
【发布时间】:2014-09-19 15:30:42
【问题描述】:

我正在尝试从 Nuget 安装 Google.api.customsearch.v1 客户端库,但是当我尝试运行我的 asp.net 网站时出现此错误。

无法加载文件或程序集 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 或其之一 依赖项。定位程序集的清单定义不 匹配程序集引用。 (HRESULT 异常:0x80131040)

我发现 stackoverflow 解决了此类问题,但没有一个解决了我的问题。有什么建议吗?

【问题讨论】:

    标签: asp.net nuget


    【解决方案1】:

    好的,我通过更新 Newtonsoft.Json 包解决了这个问题。在Package Manager Console中运行以下命令

    Update-Package Newtonsoft.Json
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-12
      • 2011-07-31
      • 2012-11-01
      • 2022-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-07
      相关资源
      最近更新 更多