I have .net core azure function app ,
below code was working fine till date.
Now i'm getting this error -
The SSL connection could not be established, see inner exception. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
var client = new RestClient("https://test.salesforce.com/services/oauth2/token");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.Parameters.Clear();
request.AddParameter("grant_type", "password");
request.AddParameter("username", "user");
request.AddParameter("password", "123");
request.AddParameter("client_id", "qw2");
request.AddParameter("client_secret", "23s");
response = client.Execute(request);