2011-03-13 100 views
1

可能重复:
How to disable “Security Alert” window in Webbrowser controlC#WebBrowser控件 - 忽略网站的安全警告

我目前使用的web浏览器(System.Windows.Forms的)在我的计划。当我尝试通过https访问某些网站时,显示“您的网站安全证书存在问题”消息。有什么方法可以让WebBrowser忽略这些类型的警告?

有WebClient的解决方案:How to ignore a certificate error with c# 2.0 WebClient - without the certificate 但是这些解决方案不适用于这个问题,因为WebBrowser似乎忽略了ServicePointManager中设置的任何内容。

回答