Failed to create SSL / TLS secure channel

I only sometimes get this error - it seems like sometimes this happens. If I refresh the page, it seems to be correcting itself. Any ideas?

The request was aborted: Could not create SSL/TLS secure channel. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.

From this code:

    string ThirdURL = "https://api.facebook.com/method/users.getInfo?uids=" + FacebookUserID + "&client_id=" + AppCode.Facebook.APPLICATION_ID + "&access_token=" + AccessToken + "&fields=first_name,last_name,current_location,email,birthday,sex,pic_square,locale&format=json";
    HttpWebRequest APIThirdRequest = (HttpWebRequest)WebRequest.Create(ThirdURL);
    StreamReader APIThirdResponse = new StreamReader(APIThirdRequest.GetResponse().GetResponseStream());

//error on line below -->
        string MoreAPIData = APIThirdResponse.ReadToEnd();
+5
source share
1 answer

This was a temporary issue on Facebook. Although this went on, the solution was to do a “try-catch loop” with x number of max repetitions of the query, even if this might be considered bad practice.

The problem itself has been resolved from 2012-07-17.

Tickets on Facebook Developers about the problem:

+1

All Articles