I am receiving a "keepalive@openssh.com" message which results in:
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.List`1.CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count)
at Renci.SshNet.Common.SshData.ReadBytes(Int32 length) in SshData.cs: line 155
at Renci.SshNet.Common.SshData.ReadUInt32() in SshData.cs: line 194
at Renci.SshNet.Common.SshData.ReadString() in SshData.cs: line 239
at Renci.SshNet.Messages.Connection.GlobalRequestMessage.LoadData() in GlobalRequestMessage.cs: line 90
at Renci.SshNet.Common.SshData.Load(Byte[] value) in SshData.cs: line 91
at Renci.SshNet.Session.LoadMessage(Byte[] data) in Session.cs: line 1549
at Renci.SshNet.Session.ReceiveMessage() in Session.cs: line 882
at Renci.SshNet.Session.MessageListener() in Session.cs: line 1589
Possibly related to http://sshnet.codeplex.com/discussions/346993
Comments: ** Comment from web user: kayhanyuksel **
************** Exception Text **************
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at Renci.SshNet.SshCommand.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.SshCommand.EndExecute(IAsyncResult asyncResult)
at sqllivegui.Form1.DoExecuteParallel(Dictionary`2 TargetSites, String schema, String _postParameters) in c:\Projects\xxxx\sqllivegui\Form1.cs:line 777
at sqllivegui.Form1.flowMultiple(Dictionary`2 _dctTargetSites, String _schema) in c:\Projects\xxxx\sqllivegui\Form1.cs:line 484
at sqllivegui.Form1.flowcontrol() in c:\Projects\xxxx\sqllivegui\Form1.cs:line 350
at sqllivegui.Form1.button1_Click(Object sender, EventArgs e) in c:\Projects\xxxx\sqllivegui\Form1.cs:line 312
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)