Symptom

WebBrowser(WebView2) works fine on a desktop machine but doesn’t work on Citrix server. Here is a typical scenario:

When an application utilizes the WebBrowser control, you may see 5 or 6 instances of WebView2 open, and it would consume 100% of the server’s CPU, and the websites would never render in the WebBrowser control. The edge browser on the server would also cause the same issue.

Environment 

PowerBuilder 2019 R3 build 2797 or later

PowerBuilder 2022 R2 or later

Cause

This is due to a compatibility issue between Edge/WebView2 and Citrix. 


Resolution

Edge and WebView2 may have problems with Citrix. Please refer to the following article to solve the problem. It is also recommended that you consult the relevant forums of Citrix or Microsoft.

For WebView2:

https://stackoverflow.com/questions/67480439/microsoft-edge-webview2-causes-performance-issue-on-citrix-server

https://github.com/MicrosoftEdge/WebView2Feedback/issues/1082

https://stackoverflow.com/questions/66114188/is-webview2-supported-in-the-citrix-server

For Edge:

https://community.citrix.com/forums/topic/237863-chromium-based-edge-browser-doesnt-launch-wvda-installed

https://www.wincert.net/mixed-tips/citrix/microsoft-edge-not-working-on-windows-2016-server-citrix-xenapp

2
0