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 37:                 if (dr["Text6"].ToString().Length > 1)
Line 38:                 {
Line 39:                     string siteContent = new System.Net.WebClient().DownloadString(dr["Text6"].ToString());
Line 40:                     int spot = siteContent.IndexOf("class=\"experiment-donation-bar__progress-raised\"");
Line 41:                     if (spot > 0)

Source File: e:\web\untamed1\Prizes.aspx.cs    Line: 39

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.DownloadString(Uri address) +106
   System.Net.WebClient.DownloadString(String address) +32
   Prizes.Page_Load(Object sender, EventArgs e) in e:\web\untamed1\Prizes.aspx.cs:39
   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.4676.0