【问题标题】:Assembly 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b' uses 'DocumentFormat.OpenXml,程序集 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b' 使用 'DocumentFormat.OpenXml,
【发布时间】:2015-10-15 13:28:30
【问题描述】:

我已经使用下面提到的链接将我的 asp.net mvc 4 项目更新为 mvc 5。但之后它在ClosedXML dll 上给出了以下错误。你能告诉我如何解决这个问题吗?提前致谢。

How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2

Error   184 Assembly 'ClosedXML, Version=0.76.0.0, Culture=neutral, 
PublicKeyToken=fd1eb21b62ae805b' uses 'DocumentFormat.OpenXml, 
Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has 
a higher version than referenced assembly 'DocumentFormat.OpenXml, 
Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'   
D:\Project\trunk\Api\bin\ClosedXML.dll  API

【问题讨论】:

  • 检查您的 DocumentFormat.OpenXml.dll 的版本
  • @Raidri 是的,这就是问题所在。我已经使用 nuget 对其进行了更新。现在它正在工作。谢谢。你能把它作为答案吗?然后我可以关闭这个线程。

标签: asp.net asp.net-mvc-4 asp.net-mvc-5 closedxml


【解决方案1】:

根据错误消息,您有不同版本的 DocumentFormat.OpenXml.dll,应该更新旧版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-27
    相关资源
    最近更新 更多