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