Skip to content

SftpClient connect exception ""no existing connection" #276

@pedro-vicente

Description

@pedro-vicente

I did a small program that does a SftpClient connect call.
When I run the program on
a Windows 10 PC that I have administrator permissions, all works built with Visual Studio 2015

When I run the program on a Windows 7 PC (Visual Studio 2013) that I do not have administrator permissions,
I get an exception after the "connect" call

"no existing connection. Will make new connection to server 127.0.0.1
Exception has been thrown by the target of an invocation"

I am using

SftpClient sftp = new SftpClient("127.0.0.1", username, password);
sftp.Connect();

the differences between the 2 cases seems to be only

  1. administrator permissions
  2. Windows 10 versus 7
  3. Visual Studio 2015 versus 2013

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions