WinSCP.SessionRemoteException error
Hi all,
I am currently trying to create a FTP backup script to download files from an PLC system. However when I am trying to get an overview of the root this first thing I receive is an error like below:
FTP Download Error: WinSCP.SessionRemoteException: Error listing directory 'LIST DISK>D:\'.
It seems like the PLC is returning an root location back to the application that winscp cannot handle. Is there a way to work around this, like not using any feedback or so. Just forcely scan directories and files?
I now use the sessionoptions as below:
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Ftp,
PortNumber = 21,
HostName = _ftpServer,
UserName = _ftpUser,
Password = _ftpPassword,
FtpMode = FtpMode.Active
};
I first used the synchronization mode, but after that was not working out I tried just to enumerate the directories and files but this was also not working. Strangely enough, the standard windows FTP command is working fine.
Does anyone have experience with this?
I am currently trying to create a FTP backup script to download files from an PLC system. However when I am trying to get an overview of the root this first thing I receive is an error like below:
FTP Download Error: WinSCP.SessionRemoteException: Error listing directory 'LIST DISK>D:\'.
It seems like the PLC is returning an root location back to the application that winscp cannot handle. Is there a way to work around this, like not using any feedback or so. Just forcely scan directories and files?
I now use the sessionoptions as below:
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Ftp,
PortNumber = 21,
HostName = _ftpServer,
UserName = _ftpUser,
Password = _ftpPassword,
FtpMode = FtpMode.Active
};
I first used the synchronization mode, but after that was not working out I tried just to enumerate the directories and files but this was also not working. Strangely enough, the standard windows FTP command is working fine.
Does anyone have experience with this?