Wednesday, June 18, 2014

Citrix: Background screen does not exit


 

Description of the Issue:

Background screen does not exit even after graceful logoff from published application. Application is published on Xenapp 6.5 on Windows 2008 R2 server as an "application" type. When the user closes the application the background window does not get closed.

When we see the session in Citrix console the session seems to be logged off.
The application is accessed through Web Interface where the application is configured to open in a fixed Window mode of 1024x768.
In seamless mode it works fine. There is no background window appearance.

 Root Cause:

 When the application is gracefully exited, some windows OS process is not able exit and hence the background window is taking a long time to close.

Solution:

 Caution! Refer to the Disclaimer at the end of this article before using Registry Editor

This registry change allows you to set the length of time a client session waits before disconnecting the session. 

Note: Setting this value also increases the time it takes for a user to log off the server.

 Create the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI
Value Name: LogoffCheckerStartupDelayInSeconds
Type: REG_DWORD

 Value: An integer that denotes the time to wait for the application to start (10 Hexadecimal recommended)
It is more useful as a troubleshooting step to confirm that the issue is due to the length of time required for your application to launch.


Disclaimer: 

Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Thursday, April 24, 2014

Users Facing Blue screen on Citrix PS 4.x for Published desktops

Problem Description:

Users not able to login to Published Desktop Applications and they see just a Blue screen.
However RDP login works fine. The problem appeared on Citrix PS 4.x platform in windows 2003 servers.

Root Cause:
 This issue has appeared after the server has been updated with two patches from Microsoft KB2922229 and KB2936068

Solution:
1.  Uninstall both the patches and reboot the server. You need to also block these patches on your automatic patch system like WSUS otherwise these will get instllaed in next patching cycle again.
2. Change Farm Level Settings

For PS 4.0:
In Management Console, right-click the farm name and hit Properties.  Open the MetaFrame Setting section and uncheck "Use Client's local time"

 FOr PS 4.5

In Access Management Console, right-click the farm name and hit Modify farm properties>Modify all properties.  Open the Farm-wide>Presentation Server>General section and uncheck "Use Client's local time