Welcome Guest Search | Active Topics | Sign In | Register

Exception Method not found: 'System.Windows.Forms.ContextMenu System.Windows.Forms.Control.get_ContextMenu()'. Options
Stefan Koell
Posted: Wednesday, January 20, 2021 5:44:34 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Hi,

I'm using the current version (20.3.63) of EO.WebBrowser in a WinForms project. As soon as I click the right mouse button on a web view, I get the following exception:
System.MissingMethodException: Method not found: 'System.Windows.Forms.ContextMenu System.Windows.Forms.Control.get_ContextMenu()'.
at EO.WinForm.WebViewHost.atwf()
at EO.WinForm.WebViewHost.vrxz(Object b, BeforeContextMenuEventArgs c)
at EO.WebBrowser.WebView.ipij(ixfp iy, fssd iz)
at EO.WebBrowser.WebView.ipjs(ixfp lp, fssd lq)
at EO.WebBrowser.WebView.ipjr(ixfp ln, fssd lo)

I'm also handling the BeforeContextMenu event but the crash seems to occur before the event is raised.

The error is raised in the EO.Base.Runtime.Exception event and then the web view dies (white screen).

Regards,
Stefan
Stefan Koell
Posted: Wednesday, January 20, 2021 5:53:04 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
I have more info: I migrated my project from net 4.7 to net 5 and the crash happens in the net 5 app. It doesn't happen in the net 4.7 app.
eo_support
Posted: Monday, January 25, 2021 4:38:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Thanks for the information. We have confirmed this to be an issue with .NET Core 3.1 and .NET 5. This issue will be fixed in our next build.
Stefan Koell
Posted: Tuesday, January 26, 2021 2:26:27 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Awesome, thank you!
eo_support
Posted: Wednesday, February 3, 2021 4:43:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

This is just to let you know that we have posted a new build that should resolve this issue. You can download the new build from our download page.

Thanks!
Stefan Koell
Posted: Thursday, February 4, 2021 3:46:23 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Thanks for the quick fix. I just tried the new build and it's working again.
eo_support
Posted: Thursday, February 4, 2021 10:24:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Thanks for confirming!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.