本文介绍了如何忽略Windows Phone 7中的证书错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上搜索,我知道在.Net中,我们可以使用以下代码来忽略验证错误。

I have searched the internet and I know that in .Net we can use the following codes to ignore certification errors.

 ServicePointManager.ServerCertificateValidationCallback =
            new RemoteCertificateValidationCallback(
                delegate
                { return true; }
            );

但是Windows Phone 7开发不支持认证类(知道从)。我现在使用 WebClient 访问需要首先进行认证的 HTTPS 网站。

But the certification classes are not supported in windows phone 7 development (know from http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4f795a8e-de05-4f01-be7f-0cf2be3a71c2). I am now using a WebClient to visit a HTTPS website which requires a certification first. So I am wondering is it possible to ignore the certification errors so that I can continue with my program?

推荐答案

不,不幸的是,安全人员不会让你。

No, unfortunately, the security guys won't let you.

这篇关于如何忽略Windows Phone 7中的证书错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 00:38