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

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

Could not load file or assembly "System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

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 »