Yesterday, 12:05:37
Hi,
There have been no other reports for AntView, so it appears this issue is unique to the original developer reporting this.
Which I guess makes sense as this kind of issue was reported to the WebView2 github pages here:
https://github.com/MicrosoftEdge/WebView...ssues/3008
The report was started in 2022, so it has been known for a while.
No details on what was setting the DPI compatibility mode on msedgewebview2.exe
So what has been done in the meantime?
Last week we did send a private AntView 2.0 version to the reporter which acts on this issue.
That version handles this issue completely automatically and restarts creating the webview after it failed due to the HIGHDPIAWARE compatibility setting.
Normally you shouldn’t even notice the issue happened.
A more elaborate explanation is:
- If the creation fails with 0x8007139F the code will check the compatibility registry settings under HKCU and enumerates what it finds under there.
- In case of locating a registry value that ends with “msedgewebview2.exe” it will then continue and read that.
- If the value contains the substring “DPI” then there’s a DPI compatibility setting applied and it will log this.
- Next step is deleting that registry value, it only deletes this one.
- Then verify that it is really removed, if so then
- Recreate starting the webview2 instance
All of the above is only done once during your application life time.
If something recreates that setting then so be it, we’re not going to lock up because of that. In that scenario, the reason can be found in the logs.
If someone else bumps into this issue they can ask for the private version.
This feature is expected to be part of the next public release.
--
Wil
There have been no other reports for AntView, so it appears this issue is unique to the original developer reporting this.
Which I guess makes sense as this kind of issue was reported to the WebView2 github pages here:
https://github.com/MicrosoftEdge/WebView...ssues/3008
The report was started in 2022, so it has been known for a while.
No details on what was setting the DPI compatibility mode on msedgewebview2.exe
So what has been done in the meantime?
Last week we did send a private AntView 2.0 version to the reporter which acts on this issue.
That version handles this issue completely automatically and restarts creating the webview after it failed due to the HIGHDPIAWARE compatibility setting.
Normally you shouldn’t even notice the issue happened.
A more elaborate explanation is:
- If the creation fails with 0x8007139F the code will check the compatibility registry settings under HKCU and enumerates what it finds under there.
- In case of locating a registry value that ends with “msedgewebview2.exe” it will then continue and read that.
- If the value contains the substring “DPI” then there’s a DPI compatibility setting applied and it will log this.
- Next step is deleting that registry value, it only deletes this one.
- Then verify that it is really removed, if so then
- Recreate starting the webview2 instance
All of the above is only done once during your application life time.
If something recreates that setting then so be it, we’re not going to lock up because of that. In that scenario, the reason can be found in the logs.
If someone else bumps into this issue they can ask for the private version.
This feature is expected to be part of the next public release.
--
Wil

