One of my dotnet application connects to RDP server to run business task using MsTscLib. Now that our server moving to AWS, it should do the same with an EC2 instance.
So far I am not able to connect to the RDP in AWS.
Anyone done this?
I am adding the code block
Friend WithEvents rdp As AxMSTSCLib.AxMsTscAxNotSafeForScripting
Dim secured As IMsTscNonScriptable = DirectCast(rdp.GetOcx(), IMsTscNonScriptable)
secured.ClearTextPassword = txtPassword.Text
rdp.Connect()
I get no exception, but just the ActiveX does not connect to the instance. rdp.Connected
property stays '0' meaning not connected.