Note If you cannot update the server, use AppContext class to opt out of this feature. To do this, use one of the following methods:
- Programmatically: Must be the very first thing the application does because ServicePointManager will initialize only once. Use the following code example in your application:
private const string DisableCachingName = @"TestSwitch.LocalAppContext.DisableCaching";
private const string DontEnableSchUseStrongCryptoName = @"Switch.System.Net.DontEnableSchUseStrongCrypto";
- By using the AppConfig file for your application: Add the following line to the Appconfig file:
For more information about the known issues in the .NET Framework 4.6, see Known issues for the .NET Framework 4.6 .
- The new configuration will only apply when the application is targeting the .NET Framework 4.6. The .NET Framework 4.5.2 and earlier versions will not be affected even if they run in a .NET Framework 4.6 environment.
- A list of affected top-level APIs:
- HttpClient, HttpWebRequest
- SCH_USE_STRONG_CRYPTO This flag is going to be automatically used in the .NET Framework 4.6 and affects behavior by removing unsafe cryptographic and hashing algorithms. For all operating system platforms earlier than Windows 10, the RC4 algorithm will be removed from use. From Windows 10, the following additional unsafe algorithms will be removed: DES, NULL, EXPORT and MD5
Article ID: 3069494 - Last Review: Jul 20, 2015 - Revision: 1