MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
444 stars 53 forks source link

Webview2 application running in a Citrix environment #1082

Open AndersAlfredsson opened 3 years ago

AndersAlfredsson commented 3 years ago

We have faced problems with Citrix hooks when running our application which is using WebView2. The hooks in Citrix is preventing the WebView2 component from starting. This can be fixed by adding the WebView2 process as an exception from all Citrix hooks, this can be done in the registry as described in this link: https://support.citrix.com/article/CTX107825.

Would it be possible to make this configuration default in Windows or possibly make it a setting in WebView2?

AB#32169480

champnic commented 3 years ago

Thanks for the feedback @AndersAlfredsson - you may have provided the solution to #675! :)

I'll work with our outreach team to see if we can get Citrix to update their default configuration.

sanjayhirani commented 2 years ago

Hi. I tried adding WebView2 process as an exception from all Citrix hooks (both 32bit and 64bit) But still get the same errors. We have 2 different Citrix environments. One being 7.15 on Server 2016 and the other Xenapp 6.5 on Server 2008 R2. It works fine on Server 2016 but not on the 2008 R2 environment.

champnic commented 2 years ago

@sanjayhirani Are you able to update and just use Server 2016? Does it work on 2008 R2 without Xenapp?

sanjayhirani commented 2 years ago

Hi. These servers cannot be upgraded to 2016 as they host XenApp 6.5. I will try it out on a non XenApp 2008 R2 server later today and let you know.

sanjayhirani commented 2 years ago

It worked without issue on a server that doesn't have XenApp. I then went back to the XenApp server and removed all API hooks by setting this reg key:

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\LoadAppInit_DLLs = 0 [REG_DWORD]"

Which then allowed the app to load the webview2.

Thanks for the help.

champnic commented 2 years ago

Thanks for confirming @sanjayhirani, and glad you got it working!

dIeGoLi commented 2 years ago

I am facing as well core webview2 process failed event with reason unresponsive and exitcode 259. It is a 2016 citrix terminal server. I am using the fixed version. Will try the registry key :)

Blackwater99 commented 2 years ago

I am dealing with this issue. Have tried the Hook Fix, have checked sanjayhirani's registry key setting. Its set to 0. Still cannot get webview2 to open thought citirix. Does anyone else have ideas? It works on our 2016 server, but not 2012/2008.

Blackwater99 commented 2 years ago

@aseme Looking at the article: https://www.petenetlive.com/KB/Article/0001657

Can you try the described workaround but use msedgewebview2.exe instead of msedge.exe?

open the registry Editor (regedit) and navigate to;

HKEY_LOCAL_MACHINE > System > CurrentControlSet > Services > CtxUvi Locate the UviProcesExcludes REG_SZ value, edit it and add ~‘msedge.exe;‘~ 'msedgewebview2.exe' to the end.

image

Theres probably one service you can restart, but I simply rebooted the server, (problem solved).

This is what worked for us. For anyone else that is struggling.