Server Error in '/' Application.

The request was aborted: Could not create SSL/TLS secure channel.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:


Line 55:             string url = @" https://myapps.gia.edu/ReportCheckPOC/pocservlet?ReportNumber=" + ReportNo + "&IPAddress=1.1.1.1&Method=DownloadPDF";
Line 56: 
Line 57:             byte[] data = client.DownloadData(new Uri(url));
Line 58: 
Line 59:             // System.IO.File.Create(CertPath).Dispose();

Source File: g:\pleskvhosts\sagarenterprisephotos.com\sagarenterprise\aspxpages\frmShowGAICertInPDF.aspx.cs    Line: 57

Stack Trace:


[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +298
   System.Net.WebClient.DownloadData(Uri address) +106
   aspxpages_frmShowGAICertInPDF.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\sagarenterprisephotos.com\sagarenterprise\aspxpages\frmShowGAICertInPDF.aspx.cs:57
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0