This project is read-only.

silverlight SFTP Connection

Aug 29, 2013 at 8:29 PM
Edited Aug 29, 2013 at 8:30 PM
i am trying to connect to SFTP using Silverlight and its giving an exception on connect
"An attempt was made to access a socket in a way forbidden by its access permissions."
{
       using (var sftp = new Renci.SshNet.SftpClient("sftp.XXXX.com", "username", password"))
        {
            sftp.Connect();
            IEnumerable<SftpFile> _List = sftp.ListDirectory("/OPCMG");
            foreach (SftpFile _x in _List)
            {
                textBox1.Text = _x.Name;
            }
            sftp.Disconnect();
        }
}