When I try to open a session, I get one of these exceptions (depending on the
Could not read status line: An existing connection was forcibly closed by the remote host.
Could not read status line: connection was closed by server
– I tried running a batch file with an
command – runs successfully.
– WinSCP.exe also connected successfully.
Any suggestion what could be the problem?
var sessionOptions = new SessionOptions
Protocol = Protocol.Webdav,
HostName = "***.net",
UserName = "***",
Password = "***",
PortNumber = 443,
WebdavSecure = false,
using (var session = new Session())