none
RDP Disconnected sessions Azure VM's

    Question

  • Support Case MS Azure

     

    Case:

    User s are disconnected from RDS. The session is disconnected, and reconnected. This happens ca. 15 times during a workday. (per user)

     

    Case details:

    Last year we started to use VM’s at the MS Azure environment. We created a W2008r2 domain controller, and 2 Terminal servers (W2012). This worked properly. We only experienced disconnections when a session was minimalized. But then we created a new environment because we had a new azure subscription. Since then we are suffering from disconnected sessions.

    We tried to tweak our environment, by optimizing the keep-alive settings and the tcp-ip settings. This improved slightly the experience, but the problem remains. Further research came up with a number of errors in the event viewer.  

    This is the main error:

    Log Name: Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational Source: Microsoft-Windows-TerminalServices-RemoteConnectionManager Date: 22-01-2013 16:28:11 Event ID: 1152 Task Category: None Level: Error Keywords:  User: SYSTEM Computer: TS01.companycloud.local Description: Failed to create KVP sessions string. Error Code 0x8007007A Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-TerminalServices-RemoteConnectionManager" Guid="{C76BAA63-AE81-421C-B425-340B4B24157F}" /> <EventID>1152</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x1000000000000000</Keywords> <TimeCreated SystemTime="2013-01-22T15:28:11.970697100Z" /> <EventRecordID>55796</EventRecordID> <Correlation /> <Execution ProcessID="1004" ThreadID="1008" /> <Channel>Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational</Channel> <Computer>TS01.companycloud.local</Computer> <Security UserID="S-1-5-18" /> </System> <UserData> <EventXML xmlns="Event_NS"> <Param1>2147942522</Param1> </EventXML> </UserData> </Event>

    Then we see a user disconnected, en then we see in the event viewer that the session has been rebuild. The user experience a ‘freeze’, black screen and then the message that the session is disconnected. The session automatically reconnect and the user can work further from the point where the session has been frozen.

    After more research, we found more errors, and we pointed to a Hyper-V problem. Foregoing error is a error that reports a problem between the Hyper-V host and the guest.

    We also created a Windows 2008 server in the same network. And the problems are appear also. The main error on the W2008 server is:

    Log Name:      System

    Source:        TermDD

    Date:          24-01-2013 08:38:19

    Event ID:      50

    Task Category: None

    Level:         Error

    Keywords:      Classic

    User:          N/A

    Computer:      COMPANY-TS03.companycloud.local

    Description:

    The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.

    Event Xml:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

      <System>

        <Provider Name="TermDD" />

        <EventID Qualifiers="49162">50</EventID>

        <Level>2</Level>

        <Task>0</Task>

        <Keywords>0x80000000000000</Keywords>

        <TimeCreated SystemTime="2013-01-24T08:38:19.410777900Z" />

        <EventRecordID>6049</EventRecordID>

        <Channel>System</Channel>

        <Computer>COMPANY-TS03.companycloud.local</Computer>

        <Security />

      </System>

      <EventData>

        <Data>\Device\Termdd</Data>

        <Data>X.224</Data>

        <Binary>00050800020030000000000032000AC00000000032000AC0000000000000000000000000000000002200000000000000</Binary>

      </EventData>

    </Event>

    Together with a partner of us, we tried to find the cause of this errors. We created on another Azure subscription a similar environment. The fact is that the problems not exist on the other environment. We also concluded, that when we stay within the Virtual Network of Azure, the connection remains!

    Our conclusion is that our problems can be ascribed to a defect in the Windows Azure Virtual Network, or in the Hyper-V solution from Windows Azure.  We think that, when we rebuild our complete environment ( approximately 4 days of work) and create a new network (or even a new subscription) the problem is solved.

    An resume of our environment:

     

    • Company-dc01 (Windows Server 2012)
      • Primary Domain Controller
      • Fileserver
    • Company-dc02 (Windows Server 2012)
      • Secondary  domain controller
    • Company-ws01 (Windows Server 2012)
      • RD Gateway
      • RD Web Access
      • RD Licensing
      • RD connection broker
    • Company-ts01 (Windows Server 2012)
      • RD Session host
    • Company-ts02 (Windows Server 2012)
      • RD Session host
    • Company-ts03 (Windows Server 2008)
      • RD Session host 
    Thursday, January 24, 2013 10:03 AM

Answers

All replies

  • Additional information:

    This error shows up in other VM's (in the same subscription, not in the same network or affinity group) and in the main hosts.

    Log Name:      System
    Source:        Microsoft-Windows-Hyper-V-Netvsc
    Date:          23-01-2013 07:44:51
    Event ID:      2
    Task Category: (1001)
    Level:         Error
    Keywords:      
    User:          SYSTEM
    Computer:      company-TS01.companycloud.local
    Description:
    The VM and host networking components failed to negotiate protocol version '4.0'
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Hyper-V-Netvsc" Guid="{152FBE4B-C7AD-4F68-BADA-A4FCC1464F6C}" />
        <EventID>2</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>1001</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2013-01-23T06:44:51.036165500Z" />
        <EventRecordID>51108</EventRecordID>
        <Correlation />
        <Execution ProcessID="4" ThreadID="108" />
        <Channel>System</Channel>
        <Computer>company-TS01.companycloud.local</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="VersionLen">3</Data>
        <Data Name="Version">4.0</Data>
        <Data Name="Status">3221225473</Data>
      </EventData>
    </Event>

    Thursday, January 24, 2013 1:53 PM
  • Hi,

    Since the issue is related to Iaas, I have moved this thread to Virtual Machine forums for getting a better support.

    Thanks for your understanding.


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 25, 2013 2:48 AM
  • I've found that this often happens after coming back to a minimised RDP window.   I've always assumed that this is by design to minimise traffic from open sessions not actively being used.   
    Friday, January 25, 2013 4:12 AM
  • I've found that this often happens after coming back to a minimised RDP window.   
    We've found that either... But the disconnect also happens when the window is maximized!
    Monday, January 28, 2013 11:47 AM
  • Dear Customer,

    Thank you for your post.

    I just want to let you know that Steve Espinosa have replied to your question in the forum , and would like to suggest that we follow up this issue there. If anything is unclear, or you have additional concerns, please feel free to let me know.


    Wednesday, January 30, 2013 8:50 AM
  • Could you provide a link to said forum reply?

    Thanks.

    Tuesday, April 09, 2013 12:27 PM
  • Hello can you provide the link for the answer? 

    Sean

    Tuesday, September 24, 2013 12:03 AM
  • Dear Customer,

    Thank you for your post.

    I just want to let you know that Steve Espinosa have replied to your question in the forum , and would like to suggest that we follow up this issue there. If anything is unclear, or you have additional concerns, please feel free to let me know.



    My concern is that this forum reply is not visible to others searching for a solution to this issue. Could you please provide a link.
    Tuesday, October 29, 2013 1:57 AM