Hi,
Ok, Error message was displayed in wrong place. I fixed it and leave default message.
Anyway something is wrong...
When I leave empty body in WebView.CertificateError then WebView.LoadFailed is fired, message is shown etc...
My new code:
Quote:private void webView1_CertificateError(object sender, EO.WebBrowser.CertificateErrorEventArgs e)
{
switch (e.ErrorCode)
{
case EO.WebBrowser.ErrorCode.CertificateCommonNameInvalid:
e.Continue();
break;
}
}
private void webView1_LoadFailed(object sender, EO.WebBrowser.LoadFailedEventArgs e)
{
e.UseDefaultMessage();
}
I want to ignore CertificateCommonNameInvalid only. I didn't ignore error CertificateAuthorityInvalid.
After this WebView.LoadFailed wasn't fired and page was opened normally. One error stay active so something is wrong.
It is self-signed certificate generated in IIS but I'm using 'localhost' and it generates this scenario.
I'm also connected to WinForm event ServicePointManager.ServerCertificateValidationCallback and I don't have this second error. Browsers are more sensitive probably.