Skip to content

Commit

Permalink
Add about FailureSourceModulePath (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbryh-msft authored Oct 23, 2023
1 parent d90f3d4 commit d156ec4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion diagnostics/code_integrity.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Users may see error page in the WebView2:

## Identify the dll

**Compatibility problem** web page may show the culprit file otherwise use Event Viewer.
**Programmatically** app can subscribe to [ProcessFailed event](https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-related-events?tabs=dotnetcsharp#events-for-processes-that-exited-or-failed). [Starting from 120.0.2164.0](https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#experimental-apis)
`FailureSourceModulePath` property in the `ProcessFailedEventArgs` contains full path of the module that caused the crash in cases of Windows code integrity failures.

**Compatibility problem** web page may also show the culprit file otherwise use Event Viewer.

Open Event Viewer by typing eventvwr in the search box on the taskbar and selecting the app.

Expand Down

0 comments on commit d156ec4

Please sign in to comment.