Director: Getting Error “Cannot retrieve the data” While Fetching Applications Running For A User Session Under Activity Manager Tab

Director: Getting Error “Cannot retrieve the data” While Fetching Applications Running For A User Session Under Activity Manager Tab

book

Article ID: CTX319759

calendar_today

Updated On:

Description

Director: Getting error “Cannot retrieve the data” while fetching Applications running for a user Session under Activity Manager tab.

dcomsrver

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Resolution

Adding an exception for DirectorComServer.exe in Software Restriction GPO applied on the VDA fixed the issue.
 

Problem Cause

Retrieving application or process list of an ICA session depends on Citrix DirectorComServer.exe running inside VDA. From Director CDF traces as well as VDA event logs, we could clearly see that the Session COM API failed because of being block by a  Software Restriction policy.

Director CDF Logs:
 
2,3,2021/05/28 14:17:01:57382,15172,3424,BrokerAgent.exe,0,DirectorVdaPlugin,,0,,1,Information,"Received the command : GetWindowsSessionId",""

254,2,2021/05/28 14:17:01:80376,12204,9412,w3wp.exe,0,DirectorService,,0,,5,EntryExit,"[t:63, s:unknown] GetSession called. sessionKey=5fc856e4-4f03-4cf9-8a20-53149ddc536e",""

12,2,2021/05/28 14:17:01:81157,1488,3424,BrokerAgent.exe,0,DirectorVdaPlugin,,0,,1,Information,"Received the command : GetRunningApplications",""

15,2,2021/05/28 14:17:01:81168,1488,3424,BrokerAgent.exe,0,DirectorVdaPlugin,,0,,1,Information," SessionIdKeyConversion.SessionKeyToSessionId() function is called with input brokerSessionKey = 5fc856e4-4f03-4cf9-8a20-53149ddc536e and output brokerSessionKey",""

17,1,2021/05/28 14:17:01:81763,1488,3424,BrokerAgent.exe,0,DirectorVdaPlugin,,0,,1,Error,"Session COM API failed with error: This program is blocked by group policy. For more information, contact your system administrator. (Exception from HRESULT: 0x800704EC)
   at System.Runtime.InteropServices.Marshal.BindMoniker(IMoniker pmk, UInt32 grfOpt, Guid& iidResult, Object& ppvResult)
   at System.Runtime.InteropServices.Marshal.BindToMoniker(String monikerName)
   at Citrix.Dmc.Vda.Command.Implementation.DirectorPluginSyncImp.GetSessionObject(UInt32 windowsSessionId)
   at Citrix.Dmc.Vda.Command.Implementation.DirectorPluginSyncImp.EnumerateTasks(EnumerateTasksPayload payload)",""

257,1,2021/05/28 14:17:01:84340,8036,9412,w3wp.exe,0,DirectorService,,0,,1,Error,"[t:23, s:unknown] NewMachineSynchronousCommand: Failed to execute command GetRunningApplications Error=Synchronous call on plugin failed with exception: This program is blocked by group policy. For more information, contact your system administrator. (Exception from HRESULT: 0x800704EC)",""


VDA Event Logs

We also saw the below event logged which showed that DirectorComServer.exe was block by Software Restriction Policy.

dcomserver2

Additional Information


Administer Software Restriction Policies
https://docs.microsoft.com/en-us/windows-server/identity/software-restriction-policies/administer-software-restriction-policies

Case Study: Unable to retrieve application/process list of a user session in Director
https://support.citrix.com/article/CTX226274 ​​​​​​​