我只是有时会收到此错误 - 似乎它有时只会发生。如果我刷新页面,它似乎会自行修复。有任何想法吗?
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.
从这段代码:
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();