Win8.1 will fire unload and load event to the WPF application when we close and reconnect to this machine using RDC from win7 or other OS.

This is a strange issue only in Win8.1.

As we all known, if there is a running application in a machine, there should not be any other behavior against the application when we connect/disconnect/reconnect to this machine by Remote Desktop Connection. However, we found that Win8.1 will fire unload and load events to the WPF application when we close and reconnect to the machine using RDC. And this is an unwanted behavior which may cause error. Here are the stable reproduce steps:

1. Write a WPF application which contains a button and handles the unload and load events of this button.

2. Using RDC to connect to a Win8.1 from Win7 for example.

3. In the remote desktop, run this WPF app.(a load event will be recorded in a.txt).

4. Close the RDC by clicking the 'x'.

5. Connect to this Win8.1 again.

6. You will see the unload and load events have been fired.

If the WPF app runs in Win7 or Win server 2008, those events will not be fired.

So, I think it is a unwanted behavior in Win8.1. Is that a bug in Win8.1 RDP? Or is that a new feature? I'm looking forward the answer.

Thanks,

Peng


  • Edited by JAPCOM923 Tuesday, July 15, 2014 2:19 AM correct the repro steps
July 3rd, 2014 5:24am

Hi,

I am trying to involve someone familiar with this to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.

Best regards

Free Windows Admin Tool Kit Click here and download it now
July 7th, 2014 2:40am

Hello Customer,

Thanks for contacting Microsoft.

Please install the following rollup on the Windows 8.1 and then test how the issue goes.

============================================================

Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 update rollup: February 2014

http://support.microsoft.com/kb/2919394/en-us

Thanks,

Sophia Sun

July 11th, 2014 3:20am

Unfortunately, this kb does not work. My issue still exists after installed the Windows8.1-KB2919394-x64.msu.

Anyway, thanks for your help. And if necessary, you could download my test program on https://www.hightail.com/download/ZUczbUpha0Q3N0RvS3NUQw. This program will write an a.txt file in the same path to record the events. So, please skip the warning from your anti-virus software.

Thanks,

Peng


  • Edited by JAPCOM923 Tuesday, July 15, 2014 2:28 AM update the link
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2014 8:01am

Hi Peng,

Thanks for your reply.

I have downloaded the tool and I am testing it in my environment. Currently, would you please try clean booting the machine and then test how the issue goes. Following are the detailed steps about clean boot:

--------------------------------------------------------------------------------------------------------------

  1. Log on to the computer by using an account that has administrator rights.
  2. Click Start, type msconfig.exe in the Start Search box, and then press ENTER to start the System Configuration Utility.
  3. On the General tab, click Selective Startup, and then click to clear the Load startup items check box. (The Use Original Boot.ini check box is unavailable.)
  4. On the Services tab, click to select the Hide all Microsoft services check box, and then click Disable all.
  5. Click OK, Choose Dont show this message again and then click Restart.
  6. Please check if RDP session issue is still the same.
  7. Please let me know the result.

If anything unclear, please feel free to let me know.

Best regards,

Sophia


July 17th, 2014 10:31am

Hi Sophia,

Thanks for your help.

However, if I disabled all the services, the network also will be not available. So, I could not finish this test. And if I only uncheck the Load startup items, my issue still exists.

So, could you help to point out that which services should be kept for making the network available?

And please be aware of that I corrected the repro steps on Tuesday, July 15, 2014 2:19 AM. And you could download my test program to take a closer look at this issue.

Best regards,

Peng

Free Windows Admin Tool Kit Click here and download it now
July 18th, 2014 9:15am

Hi Peng,

Thanks for your reply.

I have downloaded the test application you provided and done a test with it. From my environment, when I RDP to the Windows 8.1 client and launch the test application, a load event will be recorded in a.txt as you mentioned. Then I closed the RDP Session and reconnected Windows 8.1 client. From my side, the load events still exist.

Since this issue cant be reproduced in every environment, it may be not a known issue in Windows 8.1. Currently, would you please check the event logs and see whether there are any related errors? Thanks again for your cooperation.

Best regards,

Sophia Sun

August 6th, 2014 8:16am

Hi Peng,

Hope you are doing well.

Based on my experience, the cause of this issue may be that some AV software unload the event. Currently, please disable AV software and test how the issue goes.

Best regards,

Sophia Sun

Free Windows Admin Tool Kit Click here and download it now
August 11th, 2014 2:26am

Hi Sophia,

Thanks for your continuous help. And it's great that you have my application test. 

You've mentioned that you could see there is a load event log in the a.txt. And I want to know if there is a unload and another load event log in a.txt after you close and reconnect to the win8.1 like below:

--------------------------------

load: 6:03:19 PM
unload: 6:03:40 PM
load: 6:03:40 PM

--------------------------------

Please be aware of that I have ever corrected the reproduce steps on Tuesday, July 15, 2014 2:19 AM.

And thanks for your notice, but I have not installed any AV software.

Thanks and best regards,

Peng

August 15th, 2014 10:27am

Hi

Any news on this issue? In my app I am facing the exact same problem and I want to know if this is a bug in my app or a known bug with Windows 8.1 RDC connections.

Cheers,

Pascal

Free Windows Admin Tool Kit Click here and download it now
October 27th, 2014 9:46am

I have this same exact issue.  I append text on the Window_Loaded event, and when I leave my WPF application open, then disconnect from the RDP session, connect again it appends that same text as it did when I started the application.

Why on earth is it doing this? Anyone have any insight?

-Raged.

October 30th, 2014 8:23pm

BUMP, I am still having this issue. Anyone from Microsoft able to chime in here??
Free Windows Admin Tool Kit Click here and download it now
November 11th, 2014 9:29pm

I also am having the same issue, windows 7 with a RDP to windows server 2012. Windows server 2008 does not have this behaviour.

The complete wpf view is re-instantiated at server logon, did anyone ever find a solution? I have WPF webcontrols which also reload because of this feature.

Regards, Ton

March 10th, 2015 7:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics