GCP Computer Engine disconnect me c# MSTSCLib

0 votes

i created an RDP client in c# and when I try to connect to a GCP instance GCP Computer this its disconect me instant I using MSTSCLib.

I used this program with other servers and only with GCP instances I have this problem.

code:

 try
             {
                 rdp.Server = "ip";
                 rdp.UserName = "user";
                 IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
                 secured.ClearTextPassword = "password";
                 rdp.Connect();
             }
             catch (Exception Ex)
             {
                 MessageBox.Show("Error Connecting", "Error connecting to remote desktop " + " Error:  " + Ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
disconnect function
private void Rdp_OnDisconnected(object sender, AxMSTSCLib.IMsTscAxEvents_OnDisconnectedEvent e)
        {
            this.close();
        }
Feb 11 in GCP by José
• 120 points
92 views

Hey, what's the error that your encountering?
Have a look at this https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-rdp

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Getting certified in which of these (AWS, Azure, GCP) help me fetch a good job in India?

Most people would recommend AWS (Amazon web Services), and it’s actually a top-tier cert to ...READ MORE

answered Nov 25, 2019 in GCP by Sirajul
• 52,850 points
227 views
0 votes
2 answers
0 votes
1 answer
+1 vote
2 answers

How to open a port on google compute engine

You need to set the firewall rule ...READ MORE

answered Jul 9, 2019 in GCP by K sagar
982 views
+3 votes
4 answers

How to host a website on AWS?

Certainly, it can be used to do ...READ MORE

answered Mar 29, 2018 in AWS by brat_1
• 7,170 points
290 views
0 votes
1 answer

Machine Learning: Microsoft Azure

It is definitely worth it, Azure will ...READ MORE

answered Nov 23, 2018 in Cloud Computing by hemant
• 5,760 points
80 views
0 votes
2 answers