Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: Issue disconnecting. raising sshconnectionException Client not connected. [1519]

$
0
0
After making a sftp connection, using the function ListDirectory(path), checking IsConnected and if so calling Disconnect() will raise an exception.
Comments: ** Comment from web user: olegkap **

Hi,

Can you provide a code example where this error will occur?

I just did following test but got no exception :(..
```
using (var sftp = new SftpClient(connectionInfo))
{
sftp.Connect();
var list = sftp.ListDirectory("");
foreach (var item in list)
{
Console.WriteLine(item.Name);
}
var a = sftp.IsConnected;
Console.Write(a);
sftp.Disconnect();
}

```

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>