Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having an issue with RemoteApp through a Remote Desktop Gateway. The Remote Desktop Server and Gateway services are running on the same server running Windows Server 2012. The client is Windows 7 Professional. For the gateway web site, HTTPS is enabled, HTTP is disabled. UDP is also enabled on the gateway. Does not seem to be a network/firewall issue, but I could reconsider if this is a known explanation for this problem.

For this test, the application to be run is calc.exe.

  1. Run the .rdp file. It prompts me with the certificate info, I click Connect, enter credentials, click OK. It connects and shows the calculator.
  2. Close the calculator.
  3. Wait for the connection to time out and drop from the Remote Desktop Server (e.g., a couple minutes). This can be verified in Server Manager.
  4. Run the .rdp file. It prompts me with the certificate info, I click Connect. The certificate window disappears, but nothing further happens. The calculator does not launch.

It seems as if the client and server are in disagreement whether there is a usable connection still established.

No error message is displayed, and I could not find any error message in client or server event logs. Even if one waits many minutes thinking a timeout-related error message will eventually appear, none does. If I use Task Manager to end all instances of mstsc.exe, it will work again.

Hopefully, someone has seen these symptoms before!

The contents of the .rdp, with sensitive parts removed:

session bpp:i:16
prompt for credentials on client:i:1
span monitors:i:1
use multimon:i:1
server port:i:3389
allow font smoothing:i:1
alternate shell:s:||calc
workspace id:s:REMOVED.DOMAIN.local
use redirection server name:i:1
authentication level:i:0
alternate full address:s:REMOVED.DOMAIN.LOCAL
signscope:s:Full Address,Alternate Full Address,Use Redirection Server Name,Server Port,GatewayHostname,GatewayUsageMethod,GatewayProfileUsageMethod,GatewayCredentialsSource,PromptCredentialOnce,Alternate Shell,RemoteApplicationProgram,RemoteApplicationMode,RemoteApplicationName,Authentication Level,AudioMode,RedirectDrives,RedirectPrinters,RedirectCOMPorts,RedirectSmartCards,RedirectClipboard,DevicesToRedirect,DrivesToRedirect
share|improve this question
I see something similar often but haven't cared enough to fix it. For me this happens and if they simply double click the RDP file the app will suddenly "appear" (in your case, calculator) – TheCleaner Jul 17 '13 at 19:05

"Wait for the connection to time out and drop from the Remote Desktop Server (e.g., a couple minutes). This can be verified in Server Manager."

Is the disconnect verified on the client as well? Windows 7 will attempt to reconnect to a disconnected server for a default of 20 times, but those 20 times start when you activate the RDP window.

It is possible that the rdp connection isn't actually timing out for the client, and so when you "reconnect" the rdp sessions are queueing on top of each other.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.