0

I have updated my asp.net mvc 4 project into mvc 5 by using below mentioned link.But after that it gives below error on ClosedXML dll. Could you tell me how to sort out that issue ? Thanks in advance.

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
Sampath
  • 63,341
  • 64
  • 307
  • 441
  • Check the version of your DocumentFormat.OpenXml.dll – Raidri Oct 16 '15 at 09:22
  • @Raidri Yes,That is the issue.I have updated it by using nuget.Now it's working.Thanks.Can you put that as an answer ? Then I can close this thread. – Sampath Oct 16 '15 at 11:49

1 Answers1

2

According to the error message you have different version of DocumentFormat.OpenXml.dll and should update the old versions.

enter image description here

Sampath
  • 63,341
  • 64
  • 307
  • 441
Raidri
  • 17,258
  • 9
  • 62
  • 65