Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RdpClientFactory to actually create a instance of the native control #10

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

haefele
Copy link
Contributor

@haefele haefele commented Nov 29, 2024

I noticed some issues when trying to use the RdpControl on a Windows Server 2019.

I would always get this error message:
image

It seems like the RdpClient12 is actually not available on Windows Server 2019, but the RdpClientFactory didn't notice.
The RdpControl would try to use a RdpClient12, and then fail with the exception in the screenshot above.

The proposed change tries to create an instance of the native RDP control, and only if that is successful the RdpClient will be used.

This change does fix the issue on WIndows Server 2019 for me.

I would highly appreciate having this change merged and a new nuget-package published.

@StefanKoell
Copy link
Member

Thanks for the PR, @haefele, much appreciated!

I will merge and also do some test on my side. A new nuget will be published afterwards.

cheers,
Stefan

@StefanKoell StefanKoell merged commit ba79314 into royalapplications:main Dec 2, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants