WPF application and remote control

eric steph 1 Reputation point
2021-03-08T13:38:17.58+00:00

Hello everybody,

I have a very subtle problem. I have a WPF application that works perfectly in Desktop A and in Desktop B. The application runs with .NET 4.6

When I connect to Desktop B via remote desktop to Desktop A, the application works more or less fine but sometimes it goes undetected to zombie mode. One has to basically open the task manager and kill it and open the application again. It goes undetected randomly I cannot say there are specific times or actions that make it do this.

Does anyone have a trick? Are there any remote desktop options that are involved?

I googled the problem but all I see are way bigger problems that people are having with remote desktop, my problem is more subtle.

Thanks

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,690 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,309 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
773 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carl Fan 6,836 Reputation points
    2021-03-09T10:22:41.337+00:00

    Hi,
    It depends to some extent on the application you're developing but in general, I'd say that if your application encounters an unhandled exception, you need to terminate it. WPF application works fine on local machines but not for RDP.
    I consider that you could try to update your video card driver to check. Then disabling hardware accelleration by creating a DWORD registry value at

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

    and then setting it to 1.

    Also to help you better, I suggest that you could post the issue to WPF forum.
    https://learn.microsoft.com/en-us/answers/topics/wpf.html?WT.mc_id=msdnredirect-web-msdn
    Hope this helps and please help to accept as Answer if the response is useful.
    Best Regards,
    Carl

    1 person found this answer helpful.
    0 comments No comments