Would like to know ways to enable an application targeted to 3.5 framework and deployed with 2.0 framwork in IIS to work with protocol TLS 1.2.
Searched that there was ways of adding code as below to source code to get through the protocol. But it is not working and says the security protocol is not supported.
public const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
public const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;
ServicePointManager.SecurityProtocol = Tls12
or
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
Please help. thanks