Home > Net >  C # call RDP failed, but always can not find out the mistakes
C # call RDP failed, but always can not find out the mistakes

Time:09-25

Question background:
1. is in the process of implementation in COM components to join Microsoft RDP Client Control - version 9 and Microsoft Terminal Services Control Type Library, also have registered to Control: regsvr32 C: \ Windows \ System32 \ mstscax DLL,

2. btnConnect under the key code is:
 rdpClient. Server=cbxserver. Text;//get the server IP 
RdpClient. UserName=cbxusername. Text;//get the user name
IMsTscNonScriptable secured=(IMsTscNonScriptable) rdpClient. GetOcx ();
Secured. ClearTextPassword=txtpassword. Text;//get the user password
RdpClient. The Connect ();//connection

3. implementation results:
Program without error, btnConnect under other content can be achieved, only call RDP this part does not implement, the corresponding rdpClient box blank,

BTW: IP/user name/password should be not wrong, because before I use remote control program, use the computer first own MSTSC to the IP/user name/password remote control,

My foundation is bad, the ask Daniel to help me find cut failure fault because ! 100 points on! Thank you very much!


CodePudding user response:

Access problem, the program and manual with you is not a privilege

CodePudding user response:

reference 1st floor shushangdeyezi response:
permission problems, use the program and manual with you is not a permission

Oh oh that excuse me is there a way to solve other people, can realize remote control through the call at least shows that this method is feasible should

CodePudding user response:

refer to the second floor weixin_40246778 response:
Quote: refer to 1st floor shushangdeyezi response:

Permissions problems, use the program and manual with you not a permission

Oh oh that excuse me is there a way to solve other people, can realize remote control through the call at least shows that this method is feasible should

The specific I also don't know where Settings, you'll find information

CodePudding user response:


Ok, thanks for your reply!

reference shushangdeyezi reply: 3/f
the specific I also don't know where Settings, you'll data

CodePudding user response:

Come on! To answer this question: wow!

CodePudding user response:

Just to solve this problem, need to connect the remote computer over there is set to allow remote connections, and can't check the only allowed to run using the network level authentication

CodePudding user response:

refer to 6th floor m0_38025027 response:
just to solve this problem, need to connect the remote computer is set to allow remote connection over there, and I can't check the only allowed to run using the network level authentication

Thanks for sharing, I immediately try!

CodePudding user response:

You use the remote desktop system at Windows first try the remote target host to see if you have any questions, if no problem again check code if there is a problem is to get to the Internet check the solution has been try to no problem in code

CodePudding user response:

Ask the landlord, the problem has solved the
I also have this problem
  •  Tags:  
  • C#
  • Related