我有一个可以工作的代码块,然后我从控制台应用程序尝试它:
var client = new RestClient("https://.../Service.svc/json");
client.AddDefaultHeader("client_ip", "..");
var request = new RestRequest("user/auth", Method.POST);
request.RequestFormat = DataFormat.Json;
request.AddBody(new { appkey = "..", user = "d..", password = ".." });
var authorizeResponse = client.ExecuteAsync<AuthResponse>(request, (response) => {
if (response.ErrorException == null)
{
var a = response.Data;
}
});部署到windows电话设备的相同代码返回:

为什么状态代码是NotFound?在windows phone 8中接受来自https的证书有什么问题吗?
发布于 2013-09-19 15:48:42
如果您的证书是自签名的,或者不是来自包含在设备上的根权限的证书,那么您需要在设备上安装证书,然后才能使用它。
还可以验证是否可以到达不使用SSL的服务器,以验证是否存在其他连接问题。Fiddler (或类似的)跟踪也有利于获得更多关于连接问题的信息。
https://stackoverflow.com/questions/18097384
复制相似问题