Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in .NET FTP by (160 points)
Successfully able to connect to the server with password validation and client certificate, but throws "Requested operation is invalid. (code=4)" exception at UploadFile method. Please help on this.

3 Answers

0 votes
by (162k points)
Can you post the part of the logfile that shows the error?
0 votes
by (160 points)
The exception "Requested operation is invalid. (code=4)" occurs at ftpConnection.UploadFile, there are no other logfile.


Stack trace...

at ag.b(Int32 A_0)
at ag.a(String A_0, Int32 A_1, ds A_2)
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.a(Stream A_0, String A_1, String A_2, Boolean A_3)
at EnterpriseDT.Net.Ftp.Ssh.SSHFTPClient.Put(String local, String remote, Boolean append)
at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile, Boolean append)
at EnterpriseDT.Net.Ftp.FTPConnection.UploadFile(String localPath, String remoteFile)
at XXXXX.button1_Click(Object sender, EventArgs e) in XXXXX.cs:line 64
0 votes
by (162k points)
ftpConnection.LogLevel = LogLevel.All;
ftpConnection.LogFile = "myfile.log";

Categories

...