Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.WebView2.Core.Raw.ICoreWebView2WebMessageReceivedEventArgs2 #1722

Closed
ruben1PvP opened this issue Nov 26, 2023 · 3 comments
Assignees
Milestone

Comments

@ruben1PvP
Copy link

System information:

  • Windows OS version: Windows 10 Pro
  • ImageGlass version: 9.0.7.1125

To Reproduce

Steps to reproduce the behavior:

  1. Open the Quick Setup
  2. Select the Language
  3. Select the Type of User
  4. Select "Make default" or Skip

Actual behavior:

As it is the first time I install ImageGlass (after updating from 8.X), I need to open the Quick Setup while trying to open an image, so this error render the software useless.

Expected behavior:

The Setup closes and lets me use the software.

Screenshots:

https://exploiter.info/07dwlftz.png

Additional context:

The whole message is:

Version:` igcmd v9.0.7.1125
Release code: kobe
OS: Microsoft Windows NT 10.0.19045.0 64-bit

----------------------------------------------------
Error:

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.WebView2.Core.Raw.ICoreWebView2WebMessageReceivedEventArgs2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{06FC7AB7-C90C-4297-9389-33CA01CF6D5E}' failed due to the following error: Interfaz no compatible (0x80004002 (E_NOINTERFACE)).
----------------------------------------------------

System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.WebView2.Core.Raw.ICoreWebView2WebMessageReceivedEventArgs2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{06FC7AB7-C90C-4297-9389-33CA01CF6D5E}' failed due to the following error: Interfaz no compatible (0x80004002 (E_NOINTERFACE)).
   at Microsoft.Web.WebView2.Core.CoreWebView2WebMessageReceivedEventArgs.get__nativeICoreWebView2WebMessageReceivedEventArgs2()
@ruben1PvP
Copy link
Author

It looks like I forgot I didn't have WebView2 installed in this PC, so I just installed it from here and the error is now fixed.

@i-iooi-i
Copy link

i-iooi-i commented Aug 9, 2024

看起来我忘记了我没有在这台电脑上安装 WebView2,所以我只是从这里安装它,现在错误已经修复。

Thank you very much, this one is very helpful for me.

@mdtameemkhan
Copy link

mdtameemkhan commented Aug 11, 2024

It looks like I forgot I didn't have WebView2 installed in this PC, so I just installed it from here and the error is now fixed.

This is indeed the solution.
And I was getting the "Installation failed" error while trying to install webview2 runtime, saying that webview2 runtime is already installed. But actually it was not, and I had to run the installer as Admin to properly install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants