Error in connecting via RDP (1.6e)

Topics: Developer Forum, User Forum
Nov 29, 2007 at 7:46 PM
Edited Nov 29, 2007 at 8:00 PM
I have the following installed:
Microsoft .NET Framework 2.0
Microsoft .NET Framework 3.0

I get the error below...I type in a servername...and them the credentials..I come up with a Big RED X and a popup about the following problem

Any thoughts?

Error below::::::
Unhandled exception has occurred in your aplication. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately

Rectangle '{X=0,Y=0....
Nov 30, 2007 at 10:04 AM
I have exactly the same problem.

I presume it is something to do with .net 3.0 (I have Visual Studio 2008 installed). Have not tried it without yet as I don't really want to uninstall this.

Any help?

Thanks
Coordinator
Dec 3, 2007 at 7:33 PM
Most likely this is caused due to an invalid server name (try it by IP instead) or the credentials on your connection are incorrect...

Dec 9, 2007 at 9:41 AM
I am getting the same error. It is not the host and I have tried around 10 different hosts! I also get a problem with 1.6f.

Here is my log from 1.6e (I think clearly showing the problem is not the host).
INFO 2007-12-09 10:58:11,134 2825ms Terminals Main - Terminals 1.6e started
WARN 2007-12-09 11:02:42,986 274678ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 111
FATAL 2007-12-09 11:02:43,111 274803ms 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

With 1.6f I get an error
"Sorry Terminals was unable to connect to the remote machine. Try again or check the log for more informaiton.". It's log file is filled with nearly identical information to that above! But just for good measure.
INFO 2007-12-09 10:05:40,745 1640ms Terminals Main - Terminals 1.6e started
INFO 2007-12-09 10:09:36,803 234ms Terminals Main - Terminals 1.6e started
INFO 2007-12-09 10:21:52,268 234ms Terminals Main - Terminals 1.6e started
WARN 2007-12-09 10:23:56,444 124410ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:23:56,615 124582ms 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 241
WARN 2007-12-09 10:24:01,646 129612ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:24:01,708 129674ms 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 241
INFO 2007-12-09 10:24:46,386 174352ms Terminals canner_FormClosing -
System.NullReferenceException: Object reference not set to an instance of an object.
at Terminals.Network.Client.Stop() in C:\Source\Terminals\Terminals\Network\Client.cs:line 18
at Terminals.NetworkScanner.NetworkScanner_FormClosing(Object sender, FormClosingEventArgs e) in C:\Source\Terminals\Terminals\NetworkScanner.cs:line 250
WARN 2007-12-09 10:25:03,242 191208ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:25:03,242 191208ms 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 241
WARN 2007-12-09 10:25:10,365 198331ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:25:10,365 198331ms 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 241
WARN 2007-12-09 10:26:02,041 250008ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:26:02,041 250008ms 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 241
WARN 2007-12-09 10:26:40,798 288765ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:26:40,814 288780ms 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 241
INFO 2007-12-09 10:31:01,245 4503ms Terminals Main - Terminals 1.6e started
WARN 2007-12-09 10:33:12,820 136079ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:33:13,052 136311ms 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 241
WARN 2007-12-09 10:33:18,113 141372ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2007-12-09 10:33:18,113 141372ms 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 241
INFO 2007-12-09 10:35:41,496 284755ms Terminals .ctor -
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terminals.NetworkScanner..ctor() in C:\Source\Terminals\Terminals\NetworkScanner.cs:line 18
Dec 9, 2007 at 10:09 AM
I just solved my problem. The issue is that I needed to install RDP 6.0. I had RDP 5.1 installed, but it seems RDP 6.0 is actually needed.
Jan 15, 2008 at 10:39 PM
Edited Jan 15, 2008 at 10:40 PM
I have this same problem, and I do have RDP 6.0 installed. The log also states I started 1.6e, although this is 1.6f... Any clue?

INFO 2008-01-15 16:00:30,892 250ms Terminals Main - Terminals 1.6e started
WARN 2008-01-15 16:00:44,283 13640ms Terminals Connect - There was an exception setting an RDP Value.
System.ArgumentException: Value does not fall within the expected range.
at MSTSCLib.IMsRdpClientAdvancedSettings.set_overallConnectionTimeout(Int32 poverallConnectionTimeout)
at Terminals.Connections.RDPConnection.Connect() in C:\Source\Terminals\Terminals\Connections\RDPConnection.cs:line 138
FATAL 2008-01-15 16:00:44,523 13881ms 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 241
Jan 23, 2008 at 12:30 AM
Edited Jan 23, 2008 at 12:53 AM
Had the same issue. When configuring your RDP parameters (Edit Connection -> RDP tab), select the "Extended Settings" tab. Change the "Overall Timeout" and "Single Timeout" defaults from 600 to 300. Click "OK", then "Close". You should now be able to connect without getting the "There was an exception setting an RDP Value. System.ArgumentException: Value does not fall within the expected range." error.

BTW, I've seen other threads that mention the threshold can be set as high as 500.