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 51: 		wc.Encoding = Encoding.UTF8;
Line 52: 		wc.Headers.Add("user-agent", "Only a test!");
Line 53: 		XDocument document = XDocument.Parse(wc.DownloadString(new Uri("http://www.batnet.se/feed/index.php?fid=17230")), LoadOptions.None);
Line 54: 
Line 55: 		var BoatObjects = document.Descendants("item").ToList();

Source File: c:\Websites\www.jespersensmotor.se\_Plugins\BatNetFeedFull.ascx.cs    Line: 53

Stack Trace:


[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +365
   System.Net.WebClient.DownloadString(Uri address) +111
   _Plugins_test_plugin.Page_Init(Object sender, EventArgs e) in c:\Websites\www.jespersensmotor.se\_Plugins\BatNetFeedFull.ascx.cs:53
   System.Web.UI.Control.OnInit(EventArgs e) +106
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +214
   _Default.AddPlugins(String html) in c:\Websites\www.jespersensmotor.se\Default.aspx.cs:233
   _Default.BuildDoc() in c:\Websites\www.jespersensmotor.se\Default.aspx.cs:123
   _Default.Page_Init(Object sender, EventArgs e) in c:\Websites\www.jespersensmotor.se\Default.aspx.cs:155
   System.Web.UI.Control.OnInit(EventArgs e) +106
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1598


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