Server Error in '/' Application.

The request was aborted: Could not create SSL/TLS secure channel.

Description: An unhandled exception occurred.

Exception Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


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

[HttpRequestException: An error occurred while sending the request.]

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +4602897
   HoraceMann.PublicSite.Business.Providers.AgentServiceProvider.GetUniqueIdentifier(String agentNumber) in E:\Agents\4\_work\277\s\Source\HoraceMann.PublicSite.Business\Providers\AgentServiceProvider.cs:139
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.SetAgentNumberCookie() in E:\Agents\4\_work\277\s\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:127
   HoraceMann.Areas.AgentWebPages.Controllers.AgentWebPageController.SplitLayout() in E:\Agents\4\_work\277\s\Source\HoraceMann.PublicSite.WebApplication\Areas\AgentWebPages\Controllers\AgentWebPageController.cs:36
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324