Remote Desktop Protocol (RDP) Disconnect
by Steve O Hernandez on Apr.09, 2008, under Technology
Because of a protocol error, this session will be disconnected.
For some months now, I’ve not been able to use Microsoft Terminal Server to connect from my laptop to my work desktop. Oh, I could connect just fine, but then immediately (or very shortly) after logging in I’d be disconnected with the unhelpful error, “Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again.” What does that mean, and what do I do if the error happens again when I try to reconnect as it says? off to search for an answer. Nothing useful there, and Microsoft’s help for this message is complete useless. “Try connecting to the remote computer again. If you receive the same message, contact the server administrator.” Reconnecting caused the same problem, and I’m the administrator. I tried contacting myself, but I couldn’t get through. Now what?
I had already ruled out bad patches, bad software installations, and even went through a series of troubleshooting steps to “reset” terminal server. Out of the blue today, I got the idea that maybe the visual style I was using could cause this problem, as it might be a drawing issue that TS can’t handle. I was using the “sgnome” style (don’t remember where I got it but I think it was from deviantART originally), so I swapped back to the default Luna style and tried a TS connection.
It worked! Okay, verify it. Previously, the act of opening an email in Outlook could cause the error, so I tried that. It still works. Tried replying to an email, still worked. Now my TS sessions are rock solid, I’m not getting kicked with a “protocol error”, and all I did was change my style back to Luna. WTF? Well, I can’t live with Luna as it’s too boring, so I went searching for a different style. I settled on Reluna, after verifying that it didn’t break anything else.
Why did I think of visual styles? In the past I’ve had bad styles that broke other things. Most notably, I’ve had some styles that caused really bad rendering problems when opening a scheduled meeting request from Outlook. If a style can screw that up, it certainly can screw up Terminal Server. The moral of the story is to be careful when using user-created visual styles. They’re not certified by Microsoft in any way (in fact, you will generally have to hack uxtheme.dll or pay for something like StyleXP (which is what I use) to use non-Microsoft styles at all), and can do some nasty stuff. If you do run into random problems that you’ve never experienced with a previous style, switch back to Classic or Luna as part of your troubleshooting steps, and see if that solves it.
May 27th, 2008 on 8:48 PM
Same TS problem here. Got a client with a Windows Server 2000 that I administrate remotely. Using the static IP that hits the Linksys router then passes to the server, I use a Windows XP SP3 PC and RDC to log in. I repeatedly get booted off by the ‘protocol error’ you mentioned.
Nothing I do changes it. Any help would be appreciated.
Sean B.
May 27th, 2008 on 9:17 PM
I would try setting the RDP client to the lightest settings possible (ie. low resolution, remove printer mapping, 15 bit color, etc) and see how long it lasts. If you find the same errors occurring, then it’s obviously not the protocol, but an issue with the client or server. It’s also possible that the router is dropping packets, but I would think the other nodes are to blame first.
Additionally, check the logs on the server and see if anything comes up (maybe the service is crashing, etc). I’m sure you’ve done that already, but it wouldn’t hurt.
Running WireShark on both the client and server while trying to connect (might be difficult, but it may be worth the effort) to see if packets are getting through correctly, TCP sessions are staying alive as they should, etc.
Let me know how it goes. Good luck and thanks for your comment.
May 6th, 2009 on 3:59 AM
Had same issue, tried everything. I thought references to video made sense, but nothing worked. Then, set resolution on the XP machine to 800X600. Problem solved.