stfp
using sftp
doing getFile
was working with trial. Now downloads file but then errors
System.Exception.COMPlusExceptionCode
sEDILock = {object}
Value -532462766
using visual studio c#
Steps taken:
1)uninstalled trial
2)delete references from C# app
3)installed release
4)added reference back to C# app
sign in no problem, get list of files no problem. Just issue with GetFile
File does create in destination folder but is 0 bytes.
Code:
public void get()
{
// transfer the file
long bytes;
try
{
if (remotePath.IndexOf(matchString) > 1)
bytes = ftp.GetFile(remotePath, remotePath);
ftp.DeleteFile(remotePath);
}
catch (Exception ex)
{
return;
}
}