This project has moved. For the latest updates, please go here.

1.9a RDP connection not working

Topics: Developer Forum, User Forum
Jun 1, 2010 at 7:45 AM
Edited Jun 1, 2010 at 7:45 AM

I can't make a RDP connection with the new version 1.9a. I use Windows XP x64 and the RDP 6 client is installed.

I got a FATAL error in the log :

FATAL 2010-06-01 09:31:42,910  6703ms Terminals              Connect            - Connecting to RDP
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.ControlCollection.Add(Control value)
   at Terminals.Connections.RDPConnection.Connect()
FATAL 2010-06-01 09:31:44,753  8547ms Terminals              on_ThreadException - Application Exception
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
   at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
FATAL 2010-06-01 09:31:44,769  8562ms Terminals              on_ThreadException - Application Exception
Property get of 'FullScreen' cannot be invoked at this time.

Oct 13, 2010 at 3:53 PM

I am seeing the exact same error.  I am also on Windows XP x64 SP2 with the RDP 6 client is installed.  Does anyone have any information on this?  I am hoping it is something simple like just needing to register a dll or 2.

Oct 13, 2010 at 10:45 PM

You have to mark the terminals.exe as 32bit only. You can do this using the corflags utility as in Corflags terminals.exe /32BIT+

Unfortunately you need to specify the full path name to corflags which may change depending on your Framework version, but on my machine it is found in "c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64"

So, for example, I would use a command line such as 

"\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\CorFlags.exe"  c:\bin\terminals\terminals.exe   /32BIT+ 

 

Oct 14, 2010 at 3:06 PM

Thanks for your reply!  I tried this and I get the same exact error in the log.  (Incidentally, I also tried setting the bit, clearing it, resetting it, with both the 32bit version of CorFlags.exe and the x64 version.)

Oct 14, 2010 at 7:03 PM

Try re-registering the dll , using  regsvr32 C:\WINDOWS\system32\mstscax.dll