【发布时间】:2011-04-13 11:34:57
【问题描述】:
我已经搜索了互联网,我知道在.Net中我们可以使用以下代码来忽略认证错误。
ServicePointManager.ServerCertificateValidationCallback =
new RemoteCertificateValidationCallback(
delegate
{ return true; }
);
但是windows phone 7开发不支持认证类(从http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4f795a8e-de05-4f01-be7f-0cf2be3a71c2知道)。我现在使用WebClient 访问需要首先获得认证的HTTPS 网站。所以我想知道是否可以忽略认证错误,以便我可以继续我的程序?
【问题讨论】:
标签: windows-phone-7 certificate webclient