5

Tôi chỉ đôi khi nhận được lỗi này - có vẻ như nó chỉ xảy ra đôi khi. Nếu tôi làm mới trang, có vẻ như nó sẽ tự sửa. Bất kỳ ý tưởng?Không thể tạo Kênh bảo mật SSL/TLS

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. 

Từ mã này:

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(); 
+3

Chúng tôi đang nhìn thấy những lỗi tương tự thỉnh thoảng trong vài tuần qua. Gần đây có một lỗi về fb bug về nó. http://developers.facebook.com/bugs/367369176650486 – mellodev

+0

Chúng tôi thấy lỗi này ngày càng tăng trong vài ngày qua. Bất cứ ai có giải pháp cho vấn đề? – kape123

+1

chúng tôi tìm thấy vấn đề của mình là webhost của chúng tôi, chúng bao gồm địa chỉ ip của graph.facebook.com vào tệp lưu trữ trong tài khoản của chúng tôi và tất cả đều tốt. được giải quyết là sự cố ipv6. –

Trả lời

1

Đây là một vấn đề tạm thời từ phía Facebook. Trong khi nó kéo dài một giải pháp là làm một "vòng lặp cố gắng" với x số lần thử lại tối đa của yêu cầu, ngay cả khi nó có thể được coi là thực hành xấu.

Bản thân vấn đề được giải quyết từ 2012-07-17.

Vé trên Facebook Developers về vấn đề này: