SSH.NET not working with Visual Studio 2010 & 2012

Jun 28, 2013 at 7:13 PM
I can't get SSH.Net to work with either Visual Studio 2010 or 2012. I have an application that works fine in 2008 but not in the newer versions. Below is a simple sample that demostrates the issue.

Dim WithEvents ssh As New Renci.SshNet.SshClient(myIP, myID, myPW)
ssh.connect()

In 2008 this works fine, in 2010 & 21012 I receive the following error: "An Invalid argument was supplied"

An ideas would be greatly appriciated.
Jul 2, 2013 at 5:49 PM
Edited Jul 2, 2013 at 5:49 PM
This is how I do it, its vb.net but should be pretty simple to convert if you need to
Dim conninfo As Renci.SshNet.ConnectionInfo
Dim ps As New Renci.SshNet.PasswordAuthenticationMethod(username, password)
conninfo = New Renci.SshNet.ConnectionInfo(ipaddress, username, ps)
 Using ssh = New Renci.SshNet.SshClient(conninfo)
            ssh.Connect()
            If ssh.IsConnected = True Then
                Return True
            Else
                Return False
            End If
        End Using