This article explains how to repair the WebView2 runtime.
Prerequisites
|
NoteEnsure 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
- 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 ofSystemComponent
to0
.
- From the Start Menu, open Add or remove programs under Control Panel.
- Search for Microsoft Edge WebView2 Runtime.
- Click on the three dots and select Modify then Yes in the popup.
- 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
Comments
Article is closed for comments.