Try our conversational search powered by Generative AI!

SSL/TLS-problem for https://dl.episerver.net/version.json

Vote:
 

I get some SSL/TLS errors logged for an EpiServer site that occurs pretty frequently in our production environment.

Anybody else who have the same problem? It seems like episerver.net sometimes have problem with SSL/TLS. See log below.

EPiServer.Find.UI.Helpers.ExternalResourceHelper: Could not fetch https://dl.episerver.net/version.json, the following occured: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at EPiServer.Find.UI.Helpers.ExternalResourceHelper.FetchVersionFromExternalResource[T](String urlToJsonFile)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---<---

#205072
Jun 27, 2019 16:43
Vote:
 

Try this in global.asax at application start

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#205074
Jun 27, 2019 17:05
Vote:
 

Thanks, but we already have this line in our global.asax. :(

#205122
Jun 28, 2019 16:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.