I'm trying to ignore web certificate errors.
I'm looking at this page for documentation of the function I must write:
https://www.essentialobjects.com/doc/eo.webbrowser.certificateerrorhandler.aspx, where it gives this prototype:
Code: C#
public delegate void CertificateErrorHandler(
object sender,
CertificateErrorEventArgs e
);
In my initialization code I am getting an error in this line:
Code: C#
webView.CertificateError += new EventHandler<CertificateErrorHandler>(WebView_HandleCertError);
My error handler function looks like this:
Code: C#
public void WebView_HandleCertError(object sender, CertificateErrorEventArgs e) {
e.Continue();
}
Now as best I can tell, my error handler function exactly matches the prototype of the event handler. Yet this code will not compile, with the error message:
Quote: No overload for 'WebView_HandleCertError' matches delegate 'System.EventHandler<EO.WebBrowser.CertificateErrorHandler>'
What am I doing wrong here???