Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XMLSerializer fails to serialize the System.Security.Authentication.SslProtocols type


Symptoms

When you use XMLSerializer to serialize the System.Security.Authentication.SslProtocols type value, you encounter a System.InvalidOperationException error.

↑ Back to the top


Cause

This issue occurs because in the .NET Framework 4.6.2 Preview, ObsoleteAttribute was added to a few members (SSL2, SSL3) of System.Security.Authentication.SslProtocols Enum. Because XMLSerializer doesn't support ObsoleteAttribute, it throws and InvalidOperationException error.

↑ Back to the top


Resolution

The issue will be fixed in the .NET Framework 4.6.2 future release by removing the ObsoleteAttribute from System.Security.Authentication.SslProtocols

For more information about the Microsoft .NET Framework 4.6.2 Preview, see the .NET Framework 4.6.2 Preview known issues.

↑ Back to the top


Keywords: kbqfe, kbsurveynew, kbtshoot, kbexpertiseadvanced, kb

↑ Back to the top

Article Info
Article ID : 3151443
Revision : 1
Created on : 1/7/2017
Published on : 3/30/2016
Exists online : False
Views : 61