This project has moved and is read-only. For the latest updates, please go here.


Nov 16, 2007 at 3:01 PM
When I try to connect to a RDP session I get the following exception:

System.ArgumentException: Rectangle '{X=0,Y=0,Width=0,Height=0}' cannot have a width or height equal to 0.
at System.Drawing.Drawing2D.LinearGradientBrush..ctor(RectangleF rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
at TabControl.TabControl.OnDrawTabPage(Graphics g, TabControlItem currentItem) in C:\Source\Terminals\TabControl\TabControl.cs:line 671
at TabControl.TabControl.OnPaint(PaintEventArgs e) in C:\Source\Terminals\TabControl\TabControl.cs:line 138
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)

Here is an excerpt from the log file:

FATAL 2007-11-16 09:34:47,451 36422ms Terminals Connect - Connecting to RDP
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClient2.Connect()
at AxMSTSCLib.AxMsRdpClient2.Connect()
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 210

I have a co-worker that can use it no problem but I can't get past this error. Any ideas?
Nov 17, 2007 at 9:16 PM
I just checked in a potential fix for this, changeset 28604. Either way for the next build, or get the source and give it a run through for me.