Assembly' ClosedXML,Version = 0.76.0.0,Culture = neutral,PublicKeyToken = fd1eb21b62ae805b'使用' DocumentFormat.OpenXml,

时间:2015-10-15 13:28:31

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

我已经使用下面提到的链接将我的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

1 个答案:

答案 0 :(得分:2)

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

enter image description here