Para corrigir o erro “Authentication failed because the remote party has closed the transport stream” ao se conectar em nossa API usando C#, basta adicionar a seguinte linha:
"ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;"
Written by:
Para corrigir o erro “Authentication failed because the remote party has closed the transport stream” ao se conectar em nossa API usando C#, basta adicionar a seguinte linha:
"ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;"
Deixe uma resposta