Cannot connect to Citrix Metaframe Presentation Server running on Windows 2000

I have one user who could not connect to our Citrix Metaframe Presentation Server from her home. She could connect just fine from other machines, and no other users were experiencing the problem, so I was confident the issue was with her personal computer. She was running Windows XP Home, and every time she successfully logged into the Web interface for Metaframe via the Citrix Presentation Server client 10. But when she executed one of her published applications, she received the following message:

“Closing the Citrix ICA client window will disconnect you from the Citrix Presentation Server. Are you sure you want to close and disconnect?”

She would click cancel, then she got this message:

“The remote session was disconnected because there are no Terminal Server License Servers available to provide a license. Please contact the server administrator”


“Some of your applications may not have been reconnected. If this message is not usually displayed at the end of your sessions, contact your administrator.”

The first thing I did was verify licenses were available on our Windows 2000 Terminal Server, and verified no errors were found in the server’s event logs. Nothing odd was logged; I saw her IP address connect, then disconnect in a normal fashion. Next she emailed me her XP event logs, as well as the Citrix client log file. Once again, nothing weird was apparent.

We upgraded her Presentation Server client, but nothing was different. We uninstalled the client, rebooted, reinstalled the client, but once again the errors occurred.

I scoured both the Microsoft and Citrix knowledgebases, but didn’t find anything that made any difference, but I did find this and this interesting.

I finally came across this Technet article that describes a similar problem, but with Remote Desktop instead of Terminal Services. I figured RDC was close enough to TS, so I went ahead and deleted the following registry key:


She rebooted, and voila, she could connect to the Presentation Server and launch all her applications! The registry key is supposed to be recreated the next time the Citrix client is launched, but we rebooted first just to be safe. This key also needs read permissions assigned to the local users group.

In retrospect, I would have found the answer at, but it never occurred to me to check there, since I never receive any errors, on the server or client side. Here’s a discussion on rolling out the change via a batch file.

14 Responses to “Cannot connect to Citrix Metaframe Presentation Server running on Windows 2000”

  1. dave Says:

    thanks worked and very hard to find….

  2. Jesse Says:

    I have tried all these troubleshooting steps, but am still getting the message. I have tried several different permutations coupled with several warm and cold boots. Still no dice. Even a system restore to a previous date before the issue developed did not help. Running XP Pro SP2. The fellas around me are at a loss too. Any suggestions?

  3. Julie Says:


    Did you try



  4. Alfred Says:


    I have a query.

    We connect to a citrix server from office(lan) the server is located in another LAN.

    I need to know what are the configurational changes that need to be made if i want to connect to the Citrix server from Home. ie Remotly thru the net.


  5. Julie Says:

    Alfred –

    Which Cirtix product is your server, and which version is it? If it’s located on a LAN, I’d suspect it has a private IP address, so at a minimum you’d need to configure your firewall to allow access to the Citrix server, probably by NATting the IP and allowing traffic to it’s listening port(s).

    – Julie

  6. Greyhound Says:

    Need your help?
    I got this error “Cannot connect to Citrix Metaframe Presentation Server running on Windows 2000” and requires to delete the registry entry LicenseXXX from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing and restart everytime I connect to the published application in Citrix Metaframe server. I also applied the required permission, but unfortunately it didn’t work.


  7. Squonk Says:

    Hi I have an interesting issue

    I can quite happily connect to our citrix server using xp but not using fedora

    setup is as follows

    home -> work secure proxy server – -> citirx farm

    it cannot be a config at server side surely but it must be missing something at client side i am getting the following error socks 5 handshake failed error 29..



  8. Jim Frisby Says:

    I had users at several locations who had this citrix error message:
    “The remote session was disconnected because there are no Terminal Server License Servers available to provide a license. Please contact the server administrator”

    I tried deleting the key as sugested here, but it did not help, when the key was recreated by trying the citrix connection again, it was empty except for the “store” sub-folder.

    On a whim, I exported the entire
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing key from a machine that did not have the problem and imported it into the registry of the machine that was failing.

    Viola, the problem was fixed. I don’t know why the citrix client did not create the entire key, but thought my experience might be helpful.
    Jim Frisby

  9. Bully Says:

    I have a problem Win2000, citrix metaframe xp, when trying to opena the application it just sits there, this has only just started happening.
    reboot work ok then same again.
    any ideas?

  10. a2 Says:

    I have installed XenApps Hosted for my users at work on their laptops so they can use it while connected to the network locally or thru web while on travel.

    My issue is when they just want to lauch an Office Application, it propsts them to log into our Citrix so it can launch the application thru Citrix.

    I just want them to be able to launch the Office Application which is locally installed in their laptops. They don’t need to be connected to Citrix at all times.

    In short I just want to launch those applications when I decide not to go thru Citrix as they are locally installed anyway.

    Any advise?

  11. Rob Clubley Says:

    Thanks for this fix to an obscure problem.

  12. Daniel Says:

    Thank you so much! This problem was driving me mad.

    Exactly the same error message on one computer only, tried removing Java+Citrix, reinstalling, using different user accounts, nothing.

    I just renamed that key and it immediately started working.

    Cheers for taking the time to post this.

    • Larry Michaels Says:

      Per TechNET Instructions, deleting the MSLicensing Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing did not work on my machine. Each time I rebooted and reconnected the same credentials were recreated in the Registry. To solve the problem I connected with a different WinXP machine, copied the License information from the Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing) and pasted it into my machcine’s Registry. After rebooting the machine, I could finally connect.

  13. me Says:

    This saved me a lot of time Thank You!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: