Skip to content

The request was aborted: Could not create SSL/TLS secure channel on production not localhost #1223

@cblaze22

Description

@cblaze22

Nothing has changed on our end but we all of sudden are starting to get errors below for this line. We event added ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; above it and above TwitterClient and still same issue. The funny thing is this works on my local computer just fine, just not on Windows R2 which it has done for years on multiple servers.

var authenticationRequestToken = await twitterClient.Auth.RequestAuthenticationUrlAsync(redirectURL);

Error
{"ClassName":"System.Net.WebException","Message":"The request was aborted: Could not create SSL/TLS secure channel.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nEndGetResponse\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.HttpWebRequest\nSystem.Net.WebResponse EndGetResponse(System.IAsyncResult)","HResult":-2146233079,"Source":"System","WatsonBuckets":null}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions