Thursday, April 12, 2012

Increase Session Graphics Memory Limit

I recently found out that the maximum memory limit for Session Graphics in Citrix XenApp 5 on Windows Server 2003 can be increased above the 8 MB limit that is seen in the Delivery Services Console. Here is a link to the Citrix document explaining how to increase the limit: http://support.citrix.com/article/CTX114497

Basically, all you need to do is change the value "MaxLVBMem" located at "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\icawd\thin16" to a higher number. I used the decimal value of 16777216 and this allowed 16-bit color for applications at much higher screen resolutions than before.

After making the change, you must also change the permissions on the "thin16" key to deny "set value" access to the SYSTEM account. This prevents the SYSTEM account from changing the value back to a lower limit.

Tuesday, July 20, 2010

Web Interface Trusted Sites Issue

My company uses a Citrix Secure Gateway server with the Citrix Web Interface installed on the same server. If the address of the gateway is not in the end user's Trusted Sites list when using Internet Explorer, the user gets a message telling them how to add it.

However, since the Secure Gateway uses the address "localhost" to communicate with the locally installed Web Interface, the address the user is told to add to their trusted sites is http://localhost. This confuses some users, and if they follow the instructions it won't fix the problem. I needed a way to change the address to the actual URL of our Secure Gateway. Here's how to fix the problem:

1. Back up the file changeZoneHelp.inc (the default location is: C:\Inetpub\wwwroot\Citrix\XenApp\app_data\clientDetection\include), and open with Notepad. Add the following line after line 1 (replace with your URL):
<% viewModel.siteURL = "https://csg.company.com/"; %>
2. Restart the Citrix Secure Gateway service (this will close any open sessions).

That's it! The users should now see the correct URL.

Monday, January 11, 2010

Citrix "Protocol Driver" error when launching an application

One of our Citrix Xenapp 5 servers wouldn't allow applications to be launched, giving a "protocol driver" error. After following the instructions on Citrix's web site (http://support.citrix.com/article/CTX108698) and rebooting the server, the server started working again.

Here are the steps I took, in short:
  1. Disabled session reliability for the server in the Citrix Delivery Services Console
  2. Deleted the ICA-tcp connection in Terminal Services Configuration on the effected server
  3. Recreated the ICA-tcp connection
  4. Re-enabled session reliability
  5. Rebooted the server
I didn't have to recreate the LHC like the Citrix article says.

Wednesday, January 6, 2010

Services.exe using large amount of memory

I noticed several of our Windows 2003 servers were performing poorly and found that the process "services.exe" was using between 200 and 400 MB of memory, compared to 6 to 10 MB on servers that were performing normally.

I fixed the problem by simply clearing all event logs. I have no idea why this worked, but it did and almost instantly brought memory usage back down to around 6 MB.

Wednesday, December 16, 2009

Manually Remove A Server From A Citrix Farm

When I tried to use the Citrix management console to remove an old server from my Presentation Server 4.0 farm, I got an error that said: "The Presentation Server Console failed to remove the server. Error Code:80000007"

Since using the console didn't work, I had to use the dscheck utility provided by Citrix to manually remove the server from the datastore. Here is the command to use, where servername should be replaced with the name of the server you want to remove from the farm (CAUTION: If you don't specify a server name, ALL servers in the farm will be deleted!):

dscheck /full servers /deleteall servername

Tuesday, November 24, 2009

Citrix Web Interface 5.2 and Presentation Server 4.0

We are currently in the process of migrating from Citrix Presentation Server 4.0 to XenApp 5.0 FP2, and have applications published from both farms.

I recently upgraded our Citrix Web Interface servers from version 5.11 to 5.2. It was a very simple, quick upgrade. However, after the upgrade, nobody could launch applications from servers running Presentation Server 4.0.

The problem ended up being that version 5.2 of the Web Interface does not support Program Neighborhood Agent/XenApp Plugin connections to 4.0 farms by default. I spent quite a while reading through the instructions, but missed that information somehow. There is one line in the WebInterface.conf file that has to be manually edited in order to enable connections to 4.0 farms:

To configure support for Presentation Server 4.0, Presentation Server 4.0 for UNIX, and XenApp 4.0 for UNIX

Updated: 2009-09-07

In this example, you want to configure a site for compatibility with Citrix Presentation Server 4.0, Citrix Presentation Server 4.0 for UNIX Operating Systems, and Citrix XenApp 4.0, with Feature Pack 1, for UNIX Operating Systems. New Web Interface sites are not initially compatible with these products—an additional manual site configuration step is required.

  1. Using a text editor, open the WebInterface.conf file and locate the following line:
    RequireLaunchReference=On
  2. Change the setting to Off, as follows:
    RequireLaunchReference=Off
    Note: Setting the RequireLaunchReference parameter to Off disables pass-through authentication to XenApp VM hosted apps. Users of this site will be required to enter their credentials each time they access a VM hosted app.

Here are some links to information on this issue:

Citrix support forum thread: http://forums.citrix.com/message.jspa?messageID=1410690
Citrix Web Interface 5.2 documentation: http://support.citrix.com/proddocs/index.jsp?topic=/web-interface-gransden/wi-server-requirements-gransden.html
Workaround for problem: http://support.citrix.com/proddocs/topic/web-interface-gransden/wi-configure-support-cps-4-gransden.html

I would like to know why Citrix didn't make this vital information more visible, instead of tucking it away in a tiny section of the server requirements section of their online documentation. It would have been nice if they included at least a warning, if not a option to enable 4.0 access, in the Web Interface 5.2 install wizard, rather than relying on the customer to manually edit the configuration file.

Tuesday, November 10, 2009

Passthrough in Web Interface 5.x

I was going crazy trying to figure out how to get applications to launch with the credentials of the user that was logged on to the Web Interface. Passthrough worked fine for the initial logon to Web Interface, but after that a Windows logon box appeared for each application that was launched.

Apparently there is no way to configure this in the Access Management console. However, I did finally find a way to modify the default.ica file (located at "C:\Inetpub\wwwroot\Citrix\XenApp\conf\" in my environment) to allow full passthrough.

Assuming you have already enabled passthrough authentication to the Web Interface web site in the Access Mangement console, simply add the following lines under the [WFClient] section in the default.ica file:

EnableSSOnThruICAFile=On
SSOnUserSetting=On

Do this for every Web Interface server and it should work immediately!