Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get 'System.Web.Http, Version=5.2.3.0?

I just created an MVC5 project and added several packages from nuget, but then when I compiled the project, i got this error. It seems one of the packages really depends on system.web.http version 5.2.3.0, which i couldn't find anywhere. I just wonder how to get the latest version of system.web.http ?

 Error   2   Assembly 'System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
d:\Backup 2014-12-25\Website-Projects\www.ptsol.com.au\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll
like image 292
John Hadikusumo Avatar asked Feb 19 '15 10:02

John Hadikusumo


1 Answers

In Package Manager Console

Install-Package Microsoft.AspNet.WebApi.Core -version 5.2.3

like image 98
Roman Patutin Avatar answered Sep 28 '22 04:09

Roman Patutin