d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.79k stars 501 forks source link

Setting ImageGlass as default photo viewer error #1984

Closed tester5454 closed 2 months ago

tester5454 commented 2 months ago

To Reproduce

Steps to reproduce the behavior:

  1. On the quick setup pressing make ImageGlass as the default photo viewer

    Expected behavior

    Open the default apps settings or put it default automatically Screenshot 2024-08-11 223139 And the whole log is: Version: igcmd v9.1.8.723 Release code: kobe Magick.NET: Magick.NET Q16-HDRI-OpenMP x64 netstandard21 13.10.0 WebView2 Runtime: 100.0.1185.36 OS: Microsoft Windows NT 10.0.22631.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: No such interface supported (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: No such interface supported (0x80004002 (E_NOINTERFACE)). at Microsoft.Web.WebView2.Core.CoreWebView2WebMessageReceivedEventArgs.get__nativeICoreWebView2WebMessageReceivedEventArgs2() Oh and nothing works (Don't ask me why i was going fast github doesn't allow files larger than 10MB)

https://github.com/user-attachments/assets/bc30767c-c29d-4dbd-86b7-d9643e73b1e6

tester5454 commented 2 months ago

Before you ask. Yes i have webviewer installed, i think so. but isn't there usually a task related to webviewer? Screenshot 2024-08-12 002903

Screenshot 2024-08-12 002540

d2phap commented 2 months ago

Hi @tester5454

Your WebView2 is outdated. Please update to version 119 or the latest version. See https://github.com/d2phap/ImageGlass/issues/1722#issuecomment-2282887526

image