question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.Identity.Client forces assembly redirect for System.Runtime.WindowsRuntime

See original GitHub issue

We are referencing version Microsoft.Identity.Client 4.23.0 This causes the symptom described in the following issue: https://github.com/dotnet/runtime/issues/28603

Platform .NET Full Framework 4.7.2

image

Ultimately this forces to use the version of System.Runtime.WindowsRuntime from GAC. Doesn’t seem correct, could you please apply the same fix as in https://github.com/dotnet/runtime/issues/28603?

Also, clicking the warning in VS removes it from the list, but does not apply the redirect in web.config (Visual Studio Professional 2019 version 16.8.2).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AroglDarthucommented, Jan 18, 2021

Hi @bgavrilMS ,

I have stripped the repro solution a bit more. It now only references System, System.Web and the package Microsoft.Identity.Client: 2267-stripped.zip

As for the provided options:

  • We will definitely upgrade to 4.25.0.
  • We chose to remain on 4.22.0 instead of using 4.23.0 and doing nothing, just to be on the safe side.
  • The binding redirect needs to be added manually, as double clicking the warning doesn’t do anything (besides removing the warning until the next build).
1reaction
bgavrilMScommented, Dec 3, 2020

Please stay on MSAL 4.22 as it does not have this dependnecy until we get this fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Runtime.WindowsRuntime adds incorrect Binding ...
Identity.Client forces assembly redirect for System.Runtime.WindowsRuntime AzureAD/microsoft-authentication-library-for-dotnet#2267.
Read more >
Redirecting Assembly Versions - .NET Framework
Redirect compile-time binding references to different versions of .NET assemblies, third-party assemblies, or your own app's assemblies.
Read more >
Enable or disable autogenerated binding redirects
Disable automatic binding redirects in desktop apps. Automatic binding redirects are enabled by default for Windows desktop apps that target .
Read more >
Could not load file or assembly 'Newtonsoft.Json, Version= ...
Adding binding redirect configuration for Newtonsoft.Json in your configuration file (web.config) will resolve the issue.
Read more >
Configuring Assembly Binding Redirection - .NET Framework
See how to configure assembly binding redirection in .NET by using the appliesTo attribute in the assemblyBinding element of an application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found