Server Error in '/csharp' 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 73:         This sample fetches a list of customers from OData that have either a first or last name that contain the provided string. 
Line 74:         */
Line 75:         return (from c in ExigoOData.Customers
Line 76:                 where c.LastName.Contains(searchName)
Line 77:                        || c.FirstName.Contains(searchName)

Source File: c:\ExigoSample\csharp\Applications\OrphanCapture\OrphanCapture.ascx.cs    Line: 75

Stack Trace:


[WebException: The request was aborted: Could not create SSL/TLS secure channel.]
   System.Net.HttpWebRequest.GetResponse() +1751
   System.Data.Services.Client.QueryResult.Execute() +634
   System.Data.Services.Client.DataServiceRequest.Execute(DataServiceContext context, QueryComponents queryComponents) +539
   System.Data.Services.Client.DataServiceQuery`1.GetEnumerator() +23
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +430
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +73
   OrphanCaptureApplication.FetchByCustomerFirstOrLastName(String searchName) in c:\ExigoSample\csharp\Applications\OrphanCapture\OrphanCapture.ascx.cs:75
   OrphanCaptureApplication.RenderSearch() in c:\ExigoSample\csharp\Applications\OrphanCapture\OrphanCapture.ascx.cs:157
   ASP.applications_orphancapture_orphancapture_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\ExigoSample\csharp\Applications\OrphanCapture\OrphanCapture.ascx:17
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11662095
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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