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 36:             End If
Line 37:         Else
Line 38:             client.DownloadFile(remoteUri, Me.MapPath(pathJson & fileName & ".json"))
Line 39:             lastFile = Me.MapPath(pathJson & fileName & ".json")
Line 40:         End If

Source File: D:\home\executiveforli.it\httpdocs\Offerte_Speciali.aspx.vb    Line: 38

Stack Trace:


[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.WebClient.DownloadFile(Uri address, String fileName) +414
   System.Net.WebClient.DownloadFile(String address, String fileName) +35
   Offerte_Speciali.Offerte_Speciali_Load(Object sender, EventArgs e) in D:\home\executiveforli.it\httpdocs\Offerte_Speciali.aspx.vb:38
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   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