XenApp sessions disappear after a few seconds when EUEM service is started.
XenApp server with EdgeSight agent installed.
A launched app disappears after a few seconds, displaying a warning with a network error. If the EdgeSight Agent is uninstalled from the server, the issue is not reproduced and the app is launched correctly.
The source of the problem is not the EdgeSight Agent but the Citrix EUEM service. When the ES agent is installed, EUEM service communicates with Citrix Monitoring Agent service, causing this behavior. With ES agent installed and Citrix EUEM service stopped, the issue is not reproduced, launching the app correctly.
To resolve this issue review if the process Cmstart.exe is launched twice through some logon script, for example usrlogon.cmd. In case the process is launched through the logon script also, remove it from the script.
Cmstart.exe is responsible for launching wfshell.exe, which in turn loads various dll, including euem_app.dll. Cmstart must not be launched explicitly in a logon script as it is already executed from: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AppSetup.
Launching Cmstart.exe twice could cause this kind of behavior.