I follow your proposal steps. I use Unity. and I obtain an issue on the Boostrapper.Initialize
. This issue says "An exception of type 'System.IO.FileLoadException' occurred in SupportCours2.dll
but was not handled in user code
Additional information:
Could not load file or assembly 'System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" and in the inner I have {"Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)":"System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}
It's weird version 4.0 for the inner and for the top it's the 5.0
I try many things : I follow the upprade http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2 and Where can I find a NuGet package for upgrading to System.Web.Http v5.0.0.0? and Could not load file or assembly System.Net.Http, Version=4.0.0.0 with ASP.NET (MVC 4) Web API OData Prerelease
I follow also your proposals by using the "pre" version and modify the web.config. I didn't work.
Can you help?
best regards, Alexandre