Topic "Physical network disconnect - Unusable WinSCP session"

Author Message
isvaljek
[View user's profile]
Donor
Joined: 2015-06-03
Posts: 4
Location: Croatia
How can I reconnect WinSCP session after physical network disconnect?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Call .Close and .Open.

http://winscp.net/eng/docs/library_session_close
http://winscp.net/eng/docs/library_session_open
isvaljek
[View user's profile]
Donor
Joined: 2015-06-03
Posts: 4
Location: Croatia
How can I tell if .open() is needed? Is it prohibitive to call .open() on an already open session?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
There's no way to tell that atm. You cannot call .Open if the session is opened. You can try and catch InvalidOperationException.
Doctormom
[View user's profile]

Joined: 2015-06-29
Posts: 3
Hello, How can I continue to upload files to ftp after disconnection? I'm try Close Open session but it's doesn't work! Help plaease!
ErrorUpload.png (94.47 KB) [Download]

Description: (none)

Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License