Articles in this section

How to repair Webview2 Runtime

This article explains how to repair the WebView2 runtime.

  Prerequisites

  • Elevated/Admin rights needed to repair the Webview2 Runtime Application.

  Note

Ensure that WebView2 has been installed before attempting to repair.

Why and when to repair Webview2 Runtime

Repairing the Webview2 Runtime can sometimes be necessary if any Webview2 errors are encountered in our Templafy Add-ins logs

Example of errors:

[Error] WebView2 initialization failed.
System.InvalidOperationException: 
CoreWebView2 members cannot be accessed after the WebView2 control is disposed. --->
System.Runtime.InteropServices.COMException:
The group or resource is not in the correct state to perform the requested operation.
(Exception from HRESULT: 0x8007139F)
[Error] WebView2 Process failed with reason Unexpected and exit code 0
[Error] Description of failed process is with failed kind BrowserProcessExited
[Error] WebView2 initialization failed.

Repair WebView2 Runtime

  1. Add WebView2 Runtime to the list of programs.
    • Open Registry Editor.
    • Under [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView] change the value of SystemComponent to 0
  2. From the Start Menu, open Add or remove programs under Control Panel.
  3. Search for Microsoft Edge WebView2 Runtime.
  4. Click on the three dots and select Modify then Yes in the popup.
  5. Click Repair.

Issues with Webview2 Runtime on Citrix

If you notice that Webview2 is sporadically using a lot of processor power on Citrix, you can add the following registry keys:

REG ADD HKLM\SOFTWARE\Citrix\CtxHook /v ExcludedImageNames /t REG_EXPAND_SZ /d msedgewebview2.exe /f

REG ADD HKLM\SOFTWARE\Wow6432Node\Citrix\CtxHook /v ExcludedImageNames /t

REG_EXPAND_SZ /d msedgewebview2.exe /f

REG ADD HKLM\SOFTWARE\Wow6432Node\Citrix\CtxHook64 /v ExcludedImageNames /t

REG_EXPAND_SZ /d msedgewebview2.exe /f
Check for updates Fetch update .net tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.