From eec7a7ea3ec8aef4fa0432c711c48390b1149a81 Mon Sep 17 00:00:00 2001 From: Alex Ghiondea Date: Mon, 4 Jun 2018 10:18:40 -0700 Subject: [PATCH 1/3] Create 623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md Add a new known issue for .NET Framework 4.7.1. --- ...ot be loaded without a binding redirect.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md diff --git a/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md new file mode 100644 index 000000000..b49815239 --- /dev/null +++ b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md @@ -0,0 +1,36 @@ +# Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect + +## Symptoms + +When building an application that targets .NET Framework 4.7.1, referencing a .NET Standard library and use types from the `ZipFile` assembly you will get a runtime error similar to this one: + +``` +Error: Exception: System.IO.FileNotFoundException, Could not load file or assembly 'System.IO.Compression.ZipFile, Version=4.0.3.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. +``` + +## Cause + +The issues is caused by a bug in the runtime unification table for .NET Framework 4.7.1 for this assembly. The bug is preventing the unification of the 4.0.3.0 version of the assembly to the 4.0.0.0 version that is present in the machine. + +## Impact + +This problem occurs when building an application that targets .NET Framework 4.7.1 and consumes .NET Standard-based assets. + +## Workaround + +To address this problem you can manually introduce the following binding redirect in your applications' config file: + +```xml + + + + + + + + +``` + +## Resolution + +This problem is fixed in [.NET Framework 4.7.2](http://go.microsoft.com/fwlink/?LinkId=863281). From 6579f7be15e67889dfc191f530b8c5e387a6c9bb Mon Sep 17 00:00:00 2001 From: Alex Ghiondea Date: Wed, 6 Jun 2018 10:28:55 -0700 Subject: [PATCH 2/3] Update 623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md Update per PR feedback --- ...n.ZipFile cannot be loaded without a binding redirect.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md index b49815239..bae0811bb 100644 --- a/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md +++ b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md @@ -2,7 +2,7 @@ ## Symptoms -When building an application that targets .NET Framework 4.7.1, referencing a .NET Standard library and use types from the `ZipFile` assembly you will get a runtime error similar to this one: +When building an application that targets .NET Framework 4.7.1, if you reference a .NET Standard 1.x library that uses types from the ZipFile assembly, a runtime error like the following results: ``` Error: Exception: System.IO.FileNotFoundException, Could not load file or assembly 'System.IO.Compression.ZipFile, Version=4.0.3.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. @@ -10,7 +10,7 @@ Error: Exception: System.IO.FileNotFoundException, Could not load file or assemb ## Cause -The issues is caused by a bug in the runtime unification table for .NET Framework 4.7.1 for this assembly. The bug is preventing the unification of the 4.0.3.0 version of the assembly to the 4.0.0.0 version that is present in the machine. +The issue is caused by a bug in the runtime unification table for .NET Framework 4.7.1 for this assembly. The bug prevents the unification of the 4.0.3.0 version of the assembly to the 4.0.0.0 version that is present on the machine. ## Impact @@ -18,7 +18,7 @@ This problem occurs when building an application that targets .NET Framework 4.7 ## Workaround -To address this problem you can manually introduce the following binding redirect in your applications' config file: +To address this problem, you can manually add the following binding redirect in your application's config file: ```xml From 94e8588f9189c90bcc98dfe0f9ce9b2b996c786b Mon Sep 17 00:00:00 2001 From: Alex Ghiondea Date: Wed, 6 Jun 2018 10:29:32 -0700 Subject: [PATCH 3/3] Update 623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md --- ...ssion.ZipFile cannot be loaded without a binding redirect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md index bae0811bb..bfd9944d7 100644 --- a/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md +++ b/releases/net471/KnownIssues/623552-BCL Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect.md @@ -1,4 +1,4 @@ -# Higher assembly versions that 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect +# Assembly versions higher than 4.0.0.0 for System.IO.Compression.ZipFile cannot be loaded without a binding redirect ## Symptoms