GCP计算机引擎断开me c#MSTSCLib

GCP计算机引擎断开me c#MSTSCLib,c#,google-compute-engine,rdp,C#,Google Compute Engine,Rdp,我在c#中创建了一个RDP客户端,当我尝试连接到GCP实例GCP计算机时,我使用MSTSCLib立即断开连接 我在其他服务器上使用了这个程序,只有在GCP实例上我才有这个问题 try { rdp.Server = "ip"; rdp.UserName = "user"; IMsTscNonScriptable secured = (IMsTscNon

我在c#中创建了一个RDP客户端,当我尝试连接到GCP实例GCP计算机时,我使用MSTSCLib立即断开连接

我在其他服务器上使用了这个程序,只有在GCP实例上我才有这个问题

          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);
             }
断开功能

private void Rdp_OnDisconnected(object sender, AxMSTSCLib.IMsTscAxEvents_OnDisconnectedEvent e)
        {
            this.close();
        }

异常是怎么说的?你能更详细地解释发生了什么问题吗?异常不说什么只是关闭应用程序我在服务器断开连接时编写了一个函数关闭应用程序