Binding redirect not applying

  Kiến thức lập trình

I have a .NET framework 4.6.1 project that uses playwright to interact with a web page. When I try to connect to the webpage I get the error: “Could not load file or assembly ‘System.Text.Json, Version=6.0.0.9, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified.”

In the fusion logs I see “LOG: Redirect found in application configuration file: 6.0.0.0 redirected to 6.0.0.9”. So I added a binding redirect to the version I installed via nuget, it looks like this:
However, my binding redirect looks like this:

I rebuild the project and run it again but I still get the same error messages. Is there something else I need to do to get the binding redirect to take effect?

LEAVE A COMMENT