System.Net.WebException:错误:TrustFailure(对SSPI的调用失败,请参阅内部异常。)

时间:2019-12-10 07:20:25

标签: android xamarin xamarin.forms system.net.webexception webexception

xamarin中出现以下错误:System.Net.WebException:错误:TrustFailure(对SSPI的调用失败,请参阅内部异常。)

下面是我的代码:

            UserRepository usr = new UserRepository();
            var restClient = usr.RestClient;         //rest client code
            restClient.BaseUrl = StdAppIds.webServerUrl;
            var restRequest = new RestRequest();
            restRequest.Resource = "/GetVersion";
            restRequest.Method = HttpMethod.POST;
            var response = await restClient.ExecutePostAsync(restRequest);  //rest request

0 个答案:

没有答案