|
Rank: Member Groups: Member
Joined: 10/9/2014 Posts: 19
|
when my app use eo web browser and run on XP OS i get infor:
"A Certificate occured. Please handle CertificateError event"
How to fix it?
i'm can see: NeedClientCertificate and NeedCredentials only.
where's CertificateError event?
|
|
Rank: Advanced Member Groups: Member
Joined: 1/31/2015 Posts: 70
|
Hello tuan, What we do for this scenario is:
Code: C#
webview.CertificateError += webview_CertificateError;
and then define the override:
Code: C#
void webview_CertificateError(object sender, EO.WebBrowser.CertificateErrorEventArgs e)
{
e.Continue();
}
So we let the flow continue and then we handle the certificates using the 2 methods you wrote: NeedClientCertificate and NeedCredentials Hope it helps jim
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi Jim,
Thank you very much for helping us out!
|
|
Rank: Newbie Groups: Member
Joined: 1/19/2016 Posts: 2
|
VB.NET ---
Code: Visual Basic.NET
'After Load ---
Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
AddHandler Me.WebView1.CertificateError, New EO.WebBrowser.CertificateErrorHandler(AddressOf webview_CertificateError)
Code: Visual Basic.NET
Private Sub webview_CertificateError(sender As Object, e As EO.WebBrowser.CertificateErrorEventArgs)
e.Continue()
End Sub
|
|