因WebView2 Runtime导致无法登录Connection Client


问题描述:
无法登录 Connection Client。通过 Bentley Log Collector 收集日志后,发现以下错误信息:

Cause: 10-09-25 10:53:05.760 [1] ERROR - LoginControlViewModel - CoreWebView2 init failed: Microsoft.Web.WebView2.Core.WebView2RuntimeNotFoundException: Couldn't find a compatible Webview2 Runtime installation to host WebViews. ---> System.IO.FileNotFoundException: 系统找不到指定的文件。 (异常来自 HRESULT:0x80070002)

 

原因分析:
根据日志判断,此问题是由于系统中缺少兼容的 WebView2 Runtime 组件导致的。

 

解决方法:

  1. 请通过以下链接下载 Evergreen Bootstrapper 安装程序:
    https://developer.microsoft.com/en-us/microsoft-edge/webview2/?form=MA13LH
  2. 运行下载的安装包。
    注意: 如果安装过程中出现错误,请尝试以管理员身份运行安装程序。