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 64:                 playlistItemsRequest.PageToken = nextPageToken;
Line 65: 
Line 66:                 playlistItemsResponse = playlistItemsRequest.Execute();
Line 67:                 nextPageToken = playlistItemsResponse.NextPageToken;
Line 68:                 allPlaylistItemLists.Add(playlistItemsResponse);

Source File: c:\inetpub\iiconcairnscomau\App_Code\Youtube.cs    Line: 66

Stack Trace:


[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +729
   System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) +77

[HttpRequestException: An error occurred while sending the request.]
   Google.Apis.Http.<SendAsync>d__59.MoveNext() +4037
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
   Google.Apis.Requests.<ExecuteUnparsedAsync>d__33.MoveNext() +460
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   Google.Apis.Requests.ClientServiceRequest`1.Execute() +205
   Youtube.GetAllPlaylist(String playlistId) in c:\inetpub\iiconcairnscomau\App_Code\Youtube.cs:66
   _IICONTV.Page_Load(Object sender, EventArgs e) in c:\inetpub\iiconcairnscomau\IICONTV.aspx.cs:27
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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