Articles in this section

How to repair Webview2 Runtime

About this article

This article will explain how to repair the WebView2 runtime. Sections in this article: 

 

Prerequisites

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

 

Why and when to repair Webview2 Runtime?

Repairing the Webview2 Runtime can sometimes be necessary if any errors are encountered, you can for example find these Webview2 errors 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.

 

 
  • If the above errors or similar are seen in the logs of our add-ins, please try to repair Webview2.

 

Repair Webview2 Runtime through Add or remove programs

WebView2 Can be repaired through Add or Remove programs by going to the:

Start Menu -->Add or Remove Programs and searching for WebView2. Then click it and click "Modify" Confirm in the UAC popup with "Yes" or by typing in your admin credentials. Then begin the repair process by clicking the "Repair" button.. You can follow the video below on how it is done.

RepairWebview2AddOrRemovePrograms.gif

 

Repair Webview2 Runtime through Control Panel

WebView2 Can be repaired through Add or Remove programs by going to the:

Start Menu -->Control Panel --> Programs/Programs and Features--> Uninstall a program and looking for or searching for "Microsoft Edge WebView2 Runtime". Then click it and click "Change". Confirm in the UAC popup with "Yes" or by typing in your admin credentials. Then begin the repair process by clicking the "Repair" button. You can follow the video below on how it is done.

RepairWebview2ControlPanel.gif

 

Issues with Webview2 Runtime on Citrix

We have heard of issues with Webview2 on Citrix. If you for example see that Webview2 will sporadically use a lot of processor power, 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

 

 

 

Cannot find the Webview2 runtime?

 

 

Related articles

 
troubleshooting webview 2
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.