Could not load file or assembly “System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

后端 未结 15 1574
滥情空心
滥情空心 2020-11-28 18:31

I\'ve copied my project to a clean Windows 10 machine with only Visual Studio 2015 Community and SQL Server 2016 Express installed. There are no other framework versions ins

15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 18:58

    Changing the binding information in my web.config (or app.config) - while a "hack" in my view, allows you to move forward with your project after a NuGet package update whacks your application and gives you the System.Net.Http error.

    Set oldVersion="0.0.0.0-4.1.1.0" and newVersion="4.0.0.0" as follows

    
        
        
    
    

提交回复
热议问题