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

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Message par Clippy »

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.
Répondre

Revenir à « Azure Infrastructure »