Could Not Load File Or Assembly "System.Net.Http, Version=4.0.0.0, Cul

Follow the following steps,

  1. Update Visual Studio to the latest version (it matters)

  2. Remove all binding redirects from web.config

  3. Add this to the .csproj file:

    <PropertyGroup>
        <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
        <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
    </PropertyGroup>
    
  4. Build the project

  5. In the bin folder, there should be a (WebAppName).dll.config file

  6. It should have redirects in it, copy these to the web.config

  7. Remove the above snipped from the .csproj file

It should work.