Windows Store Apps: The host name in the certificate is invalid or does not match
问题 in my windows 8.1 application, when I call a web service, I get the following exception: The host name in the certificate is invalid or does not match The code I use: HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter(); filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted); HttpClient client = new HttpClient(filter); HttpResponseMessage msg = await client.GetAsync(new Uri("[Service_URL]",UriKind.Absolute)); IRandomAccessStream randomAccessStream=