Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Re: Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Follow the following steps:
-
Update Visual Studio to the latest version (it matters)
-
Remove all binding redirects from `web.config`
-
Add this to the **`.csproj`** file:
```
true
true
```
-
Build the project
-
In the `bin` folder there should be a `(WebAppName).dll.config` file
-
It should have redirects in it:
- **copy these to the `web.config`**
-
Remove the above snipped from the **`.csproj`** file
It should work.
-
Update Visual Studio to the latest version (it matters)
-
Remove all binding redirects from `web.config`
-
Add this to the **`.csproj`** file:
```
true
true
```
-
Build the project
-
In the `bin` folder there should be a `(WebAppName).dll.config` file
-
It should have redirects in it:
- **copy these to the `web.config`**
-
Remove the above snipped from the **`.csproj`** file
It should work.