We have a windows 2003 server being used in terminal server mode. We have several users logging on to this box and using it each day. Sometimes when one user logs on from another workstation and they have a disconected session, he/she will gets the following dialogue
Logon connect failed
Error connecting to existing session for username (Id x)
The operation completed successfully
A new session will be created
This dialogue is attached.
Normally users can disconnect and log on from other locations such as home, without a problem and all their programs, etc appear on the screen just as they left them.
If that user does log on and creat a new session and then they go to task manager, users, and try to connect to their session then they get the following error:
Windows Task Manager
Unhandeled error occurred while connecting
#31 A device attached to the system is not functioning
We also tried using tscon to connect from the command line:
Could not connect sessionID 2 to this session, Error code 31
Error :A device attached to the system is not functioning.
We have noticed that if we use task manager and end a few large apps such as outlook, iexplore etc from this users session, then they can log in and grab their session again. However Outlook and iexplore.exe dont always work and sometimes we have to end other applications.
Rebooting the server fixes the problem and all users can logon normally and then sucessfully attach to their disconnected sessions in the future. However sooner or later this problem will reappear for one or more users. It usually starts with one user. We noticed this on a previous server and after we got the session errors often the whole server would totally crash when someone logged on.
The current server is not running anything particularly unusual as far as apps goes; office 2007 & mcafee antivirus enterprise.
We have noticed occasional "out of resources " errors very occasionally with one or two apps such as wingrep. Not sure if this is related. We also have 1GB of ram and plenty of free ram always.
Would really appreciate any ideas anyone might have.