Could not load file or assembly System.Net.Http version 4.1.1.0
Go to the app.config and remove all the lines there that reference System.Net.Http.
I got the issue, and realized that it was because I had two different references. one reference was from my project library, and the second one was a dependency of a .Net Standard library, and therefore a Nuget package. The steps to solve were the following:
- Remove the reference to
System.Net.Http
(project => add reference => remove the reference). - Keep the System.Net and System.Net.Http Nuget packages
- Run
Update-Package –reinstall System.Net.Http
to bring back the reference.
Now it works again. :)
Fixed it by updating System.Net.Http to 4.3.1