Sure, we've all seen this message and usually it's a fairly simple fix, but this time I'm stumped. I've been updating packages on an older solution; not a big deal........until I updated Newtonsoft.Json to 12.0.3 and Microsoft.AspNet.WebApi.Core to 5.2.7. After this attempt, I continually get the error:
Could not load file or assembly 'System.Web.Http, Version=220.127.116.11, 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)
However, my web.config has the following:
<dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-18.104.22.168" newVersion="22.214.171.124" /> </dependentAssembly>
Under my project's dependencies/packages I show Microsoft.AspNet.WebApi.Core (5.2.7)
I've tried reinstalling, cleaning and rebuilding the solution, and deleting the bin folders and rebuilding, but nothing seems to work, I continue to receive this error. Is there something I'm missing? Any suggestions would be appreciated.
User contributions licensed under CC BY-SA 3.0