Server will randomly stop accepting connections. netstat -a it does not show the XenApp server listening on port 1494. It is still possible to use Microsoft's RDP to connect to the server.
and the ica-tcp port is not disabled.
There are two solutions.
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
Run Regedit.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
Create a key named WDICA.
Manually add the following values:
ErrorControl: REG_DWORD : 0
Start: REG_DWORD : 0x3
Type: REG_DWORD : 0x1
Reboot the server.
After the reboot, a subkey named Enum will be created with the following values:
0 : REG_SZ : Root\LEGACY_WDICA\0000
Count : REG_DWORD : 0x1
NextInstance : REG_DWORD : 0x1
Make a Custom ICA Connection to the server IP address. The connection should now connect successfully.
Complete the following steps if the preceding resolution does not resolve the issue:
Check if HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WDICA and its subkeys exist.
Add permissions to the key in order to save and restore the key from a working server. When this key is manually deleted and the server is rebooted, the key should regenerate automatically.
If the key does not automatically regenerate, restore a copy of this key from a known good server or manually create the entries. When replacing this key with a copy of the key from another server, navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WDICA\0000\Control
Delete the data of the following value located within the key referenced in step 1 and reboot the server:
"DeviceReference"=dword:8188fd10
Data should repopulate after the reboot.
Note: The cause for the disappearance or corruption of these registry keys is currently unknown. Reboot the XenApp server after making the preceding registry changes.
Because Windows 2008 removing and re-adding the ica-tcp port creates problems due to a Microsoft change to sfi the port is not listening we would need to repair the install of XenApp to repair the ica-tcp port that is not working as follows:
Add/Remove programs > Change > repair > XenApp 6.5.
This issue is caused by a corrupt or faulty ica-tcp port.
A program installed on the XenApp server is trying to listen on 1494 can also stop as from using it. Ensure that any network scanners or other programs are not interfering with that port.