Can't load Assembly System.Net.Http.Formatting in .Net Solution

This is how I solved the problem. I deleted the DLL System.Net.Http.Formatting. I made sure it was deleted from the .csproj file and the packages.config file.

Then I uninstalled the packages Microsoft.AspNet.WebApi.WebHost, Microsoft.AspNet.WebApi.Core and Microsoft.AspNet.WebApi.Client using NuGet.

Then I reinstalled the packages using NuGet, but I did not reinstall the System.Net.Http.Formatting package.

The dependent code in that originally required it is now in part of Microsoft.AspNet.WebApi.Client. It installed the System.Net.Http.Formatting package and the version 5.2.6 which my Solution was originally looking for and complaining about when it could not find it.