I have a very strange issue and it costs me a day now.
The error exception.
System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at RestSharp.Http.WriteRequestBody(HttpWebRequest webRequest)
at RestSharp.Http.PostPutInternal(String method)
at RestSharp.RestClient.Execute(IRestRequest request, String httpMethod, Func`3 getResponse)
My code is working on the TEST-environment, but not on my local environment. The code has worked in the past and nothing has changed. I reproduced the REST-call on my local machine in SoapUi and there it's working. I imported the SSL-certificate etc. My local machine is runnning Windows 7 and the TEST-environment Windows Server 2008. Both environments are running .NET Framework 4.5.
I searched the internet for a solution and I've found a lot, for example The request was aborted: Could not create SSL/TLS secure channel http://robertgreiner.com/2013/03/could-not-establish-trust-relationship-for-the-ssl-tls-secure-channel/
I tried the possible solutions, but I did not solve the issue. Does anyone know the solution?
Thanks a lot, Jordy