Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

changed from trial to release and not getfile with sftp

$
0
0

stfp
using sftp
doing getFile
was working with trial. Now downloads file but then errors

System.Exception.COMPlusExceptionCode
s
EDILock = {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;
        }
    }

Viewing all articles
Browse latest Browse all 3862

Trending Articles