Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Error loading System.Net.Http.Formatting

$
0
0

I upgraded my package to .net 4.5 framework and I am currently getting this error:

System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, 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)

The version that is attached to the project is 5.2.3.0 and I have this in my web.config:

<dependentAssembly>
     <assemblyIdentity name="System.Web.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
     <bindingRedirect oldVersion="4.0.0.0-4.0.0.0" newVersion="5.2.3.0" />
</dependentAssembly>

At this point I am not sure what I am missing.


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>