lunes, 25 de julio de 2022

The underlying connection was closed: Could not establish secure channel for SSL/TLS.


Añadir las 2 siguientes lineas antes de crear la instancia al webServices.
1
2
3
4
// Soportar HTTPS
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;

No hay comentarios:

Publicar un comentario