connection error

  • Thread starter Thread starter dammand
  • Start date Start date
D

dammand

Guest
windows 10 64 bit

Microsoft Visual Studio Professional 2019

net framework 4.8


the error

System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'


the code


using (WebClient client = new WebClient())
{
client.Headers.Add(HttpRequestHeader.UserAgent, "AvoidError");

//passing the URL to function from which to extract the content.
htmlCode = client.DownloadString(" my link");

//passing the URL again to function from which to extract the content and compare from above content.
strNewCompanyCode = client.DownloadString("my link ");
}



please help to fix the error


please note that my knowledge not as your knowledge


thank you for your help

Continue reading...
 
Back
Top