Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


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


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.


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.

More Information

For more information, see Application compatibility in the .NET Framework 4.6.2.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!