From a4d22eefa513bf762bfc8162d20f580083a32a09 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2020 10:27:13 -0700 Subject: [PATCH 1/3] update serializationexception condition --- .../BinaryFormatter.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml index 7ed9bc3e70b..1c8d4f79ecf 100644 --- a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml +++ b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml @@ -444,7 +444,7 @@ -or- - The target type is a , but the value is out of range of the type. +The input stream does not represent a well-formed serialized payload, or an error occurred while deserializing an object from the input stream. The property may contain more information about the root cause. The caller does not have the required permission. From a2e990a77035a5d48076d72db8a80b781a73fc6f Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2020 11:16:47 -0700 Subject: [PATCH 2/3] Fix inner exception link error --- .../BinaryFormatter.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml index 1c8d4f79ecf..71f4df4a9f6 100644 --- a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml +++ b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml @@ -444,7 +444,7 @@ -or- -The input stream does not represent a well-formed serialized payload, or an error occurred while deserializing an object from the input stream. The property may contain more information about the root cause. +The input stream does not represent a well-formed serialized payload, or an error occurred while deserializing an object from the input stream. The property may contain more information about the root cause. The caller does not have the required permission. From c71bb72d8108016ab1b769f48bcb7a2d6d025fce Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2020 11:19:30 -0700 Subject: [PATCH 3/3] Break up exception conditions --- .../BinaryFormatter.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml index 71f4df4a9f6..30f895a4926 100644 --- a/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml +++ b/xml/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.xml @@ -444,7 +444,13 @@ -or- -The input stream does not represent a well-formed serialized payload, or an error occurred while deserializing an object from the input stream. The property may contain more information about the root cause. +The input stream does not represent a well-formed serialized payload. + +-or- + +An error occurred while deserializing an object from the input stream. + +The property may contain more information about the root cause. The caller does not have the required permission.