Skip to content

Commit

Permalink
4.7.1 Known Issue: 510901-Apps-targeting-.NET-4.6.1-who-using-.NET-St…
Browse files Browse the repository at this point in the history
…andard-libra… (microsoft#524)

New 4.7.1 Known Issue: 
* Create 510901-Apps-targeting-.NET-4.6.1-who-using-.NET-Standard-libraries-might-be-broken-on-.NET-4.7.1.md

* Update 510901-Apps-targeting-.NET-4.6.1-who-using-.NET-Standard-libraries-might-be-broken-on-.NET-4.7.1.md

* Update 2
  • Loading branch information
AlexGhiondea authored and vivmishra committed Oct 18, 2017
1 parent 999db8d commit 1b8847c
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Symptoms

Applications that target the .NET Framework 4.6.1 and use .NET Standard libraries may experience <xref:System.TypeLoadExceptions> exceptions when running on the .NET Framework 4.7.1

## Cause

The .NET Framework 4.7.1 adds support for .NET Standard in-box. As part of this change, a few assemblies that used to ship independently from the .NET Framework have now been added to the .NET Framework. As these .NET Standard assemblies were not part of the .NET Framework prior to .NET 4.7.1, they were deployed with the application, and a binding redirect was added to the application's app.config file.

When running on the .NET Framework 4.7.1, where the assemblies are now part of the Framework, the application now has two types with different identities, and that leads to a <xref:TypeLoadException>. One type comes from the app-local assembly, and the other one comes from the .NET Framework assembly.

## Workarounds

There are two ways to work around this issue:
- When running on .NET Framework 4.7.1, remove the binding redirects from the app.config file for the assemblies that are now part of the .NET Framework.
- Re-target your application to target the .NET Framwork 4.7.1

0 comments on commit 1b8847c

Please sign in to comment.