M
makhan080372
Guest
i am getting error message about line 23 for following code
22) WebClient client = new WebClient();
23) string reply = client.DownloadString("Technical documentation, API, and code examples");
24) File.WriteAllText(@"C:\test.txt", reply);
Unhandled Exception: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at helloworld.Program.Main(String[] args) in C:\Users\hp\Documents\Visual Studio 2015\Projects\helloworld\helloworld\Program.cs:line 23
Continue reading...
22) WebClient client = new WebClient();
23) string reply = client.DownloadString("Technical documentation, API, and code examples");
24) File.WriteAllText(@"C:\test.txt", reply);
Unhandled Exception: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at helloworld.Program.Main(String[] args) in C:\Users\hp\Documents\Visual Studio 2015\Projects\helloworld\helloworld\Program.cs:line 23
Continue reading...