我有时只会得到这个错误 - 似乎有时只会发生这种错误.如果我刷新页面,它似乎自我修复.有任何想法吗?
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.
Run Code Online (Sandbox Code Playgroud)
从这段代码:
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); …Run Code Online (Sandbox Code Playgroud) 也许这是一个愚蠢的问题,但我正在开发一个项目,希望我生成一些看起来像这样的JSON:
{'action.type':'post', 'application':APP_ID}
Run Code Online (Sandbox Code Playgroud)
在C#中,我正在尝试创建这个"action.type"属性,其值为"post".我该怎么办?以下是我通常会创建以下内容的方法:
dynamic ActionSpec = new ExpandoObject();
ActionSpec.SomeParam = "something";
ActionSpec.id = 12345;
Run Code Online (Sandbox Code Playgroud)
我不能去"ActionSpec.action.type",因为它不会输出所需的"action.type".这有意义吗?谢谢!