The request was aborted Could not create SSLTLS secure channel issue [SOLVED]

preview_player
Показать описание
How to fix The request was aborted Could not create SSLTLS secure channel issue when you sending an http request in .NET

Codes to add in before the http request

ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12
| SecurityProtocolType.Ssl3;
Рекомендации по теме
Комментарии
Автор

I have added this line in Global.asax file in application.start action method and also add this line in before api call so in my local everything is fine but in live I am getting this error "Could not create SSL/TLS secure channel" so what i do to fix this error please help

hamzasorathiya