I use "ServicePointManager" to fix the problem "The request was aborted : could not create SSL/TLS seccure channel".
try
{
// ServicePointManager.Expect100Continue = true;
// ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
//
// or this
//
// ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
var client = new WebClient();
var str = client.DownloadString(url);
textBox1.Text = str;
}catch (Exception ex){
MessageBox.Show(ex.Message);
}
but my project freeze/hangs. Can someone help me?