In VS 2015 I run my app everything is good, but I run the app in VS 2017 facing this exception when I hit Https link and not at all working.
now I got a solution for this...
before you hit an URL use this code...
** const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;
ServicePointManager.SecurityProtocol = Tls12;**
pls, refer to this link where I found this one. If I was wrong pls make it right.
Thanks in advance.