I get the error :
Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. Manifest definition does not match the assembly reference.
After adding a WebApi controller class to my ASP.NET MVC project. I also have SignalR in my project. Both are using Newtonsoft.Json but it seems that they are not referencing the same version.
SignalR uses and works with the 6.0.8 Version, while the error tell me that MapHttpRoute :
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
RouteTable.Routes.MapHttpRoute("DefaultApi", "api/{controller}/{id}");
}
tries to load 4.5 version.
I read this post SignalR & WebApi - colliding Newtonsoft.Json references
but I don't know how to tell webapi to point on the 6.0.8 version.