Note that there are some explanatory texts on larger screens.

plurals
  1. PORDC app not working on Win 8 works fine on Win 7
    primarykey
    data
    text
    <p>I wrote an app in C# WPF and VS2012 that uses the RDC control (AxMSTSCLib.AxMsRdpClient7) to connect to a remote server.</p> <p>The app has been working perfectly in Win 7 but when I installed it on a Windows 8 machine, as soon as it connects to the remote server it disconnects by itself. All we can see is a blink of the app main screen.</p> <p>I checked the IMsTscAxEvents_OnDisconnectedEvent and the error code returned = 1 According to the table it says {1, "Local disconnection. This is not an error code."},</p> <p>I tried to run in Win 7 compatible mode but nothing changed.</p> <p>I have tested it in 2 different Win 8 boxes on sepatated locations and the problem is the same. In all Win 7 it works without a problem. </p> <p>In the Win 8 machine, if I try to connect manually, using the same credentials of the app and the RDC control that come with the OS, it works as expected without dropping the connection. Could it be that the AxMSTSCLib.AxMsRdpClient7 that I'm using in the app is not supported in Win 8 ?</p> <p>Does anybody knows anything about this? At the moment I have no idea on what path to go.</p> <p>Here is the code. The RDC control is hosted on a forms user control</p> <p>// This line is execute somewhere else. Placed here only for reference. private AxMSTSCLib.AxMsRdpClient7 rdc;</p> <pre><code> public void ConnectToServer(string UserName, string Password, string ServerIP) { int portNumber = 3389; // 5306 try { if (ServerIP.Contains(":")) { portNumber = Convert.ToInt16(ServerIP.Substring(ServerIP.IndexOf(":") + 1, 4)); rdc.Server = ServerIP.Remove(ServerIP.IndexOf(":")); } else { rdc.Server = ServerIP; } rdc.UserName = UserName; rdc.AdvancedSettings7.RDPPort = portNumber; rdc.AdvancedSettings7.RedirectPrinters = true; rdc.AdvancedSettings7.RedirectClipboard = true; rdc.AdvancedSettings7.RedirectSmartCards = true; rdc.AdvancedSettings7.AuthenticationLevel = 2; IMsTscNonScriptable secured = (IMsTscNonScriptable)rdc.GetOcx(); secured.ClearTextPassword = Password; rdc.Connect(); } catch (Exception Ex) { MessageBox.Show("Error connecting to gateway server" + "\n Error: " + Ex.Message, "Error Connecting", MessageBoxButtons.OK, MessageBoxIcon.Error); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload