Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in .NET FTP by (380 points)
Hi

I

4 Answers

0 votes
by (380 points)
I enabled the log and as far as I can read from the output, I do recive a 101 return (OK?)
DEBUG [SSHFTPClient] 7 mar 2007 16:23:15.620 : Put(C:\BC\FTP\PutFile\putfile.txt,VTest.txt)
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:15.620 : GetAttributes(/TNDUPENS/VTest.txt)
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.620 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=10
DEBUG [PlainSocket] 7 mar 2007 16:23:15.651 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:15.651 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:15.651 : AddMessage(10) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.651 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=10
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:15.651 : No such file : /TNDUPENS/VTest.txt
DEBUG [SSHFTPClient] 7 mar 2007 16:23:15.667 : Remote path=/TNDUPENS/VTest.txt
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:15.667 : GetAttributes(/TNDUPENS/VTest.txt)
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.667 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=11
DEBUG [PlainSocket] 7 mar 2007 16:23:15.698 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:15.698 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:15.698 : AddMessage(11) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.698 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=11
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:15.854 : No such file : /TNDUPENS/VTest.txt
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.854 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=12
DEBUG [PlainSocket] 7 mar 2007 16:23:15.901 : RepeatCallback received 68 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:15.901 : Received message (type=102)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:15.901 : AddMessage(12) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.901 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=12
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.901 : Send : Name=SSH_FXP_WRITE,Type=6,RequestID=13
DEBUG [PlainSocket] 7 mar 2007 16:23:15.948 : RepeatCallback received 68 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:15.948 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:15.948 : AddMessage(13) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.948 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=13
DEBUG [SFTPMessage] 7 mar 2007 16:23:15.948 : Send : Name=SSH_FXP_CLOSE,Type=4,RequestID=14
DEBUG [PlainSocket] 7 mar 2007 16:23:16.229 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:16.229 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:16.229 : AddMessage(14) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:16.229 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=14
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:16.229 : GetAttributes(/TNDUPENS/VTest.txt)
DEBUG [SFTPMessage] 7 mar 2007 16:23:16.229 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=15
DEBUG [PlainSocket] 7 mar 2007 16:23:16.261 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:23:16.261 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:23:16.261 : AddMessage(15) - added to store
DEBUG [SFTPMessage] 7 mar 2007 16:23:16.261 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=15
DEBUG [SFTPSubsystem] 7 mar 2007 16:23:16.261 : No such file : /TNDUPENS/VTest.txt
A first chance exception of type 'EnterpriseDT.Net.Ftp.Ssh.SFTPException' occurred in edtFTPnetPRO.dll
0 votes
by (380 points)
Even more debug info:

DEBUG [SSHFTPClient] 7 mar 2007 16:49:54.332 : Put(C:\BC\FTP\PutFile\putfile.txt,VTest.txt)
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.332 : GetAttributes(/TNDUPENS/VTest.txt)
ALL [SFTPMessage] 7 mar 2007 16:49:54.332 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=10
path=/TNDUPENS/VTest.txt
DEBUG [PlainSocket] 7 mar 2007 16:49:54.363 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.363 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.363 : AddMessage(10) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.363 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=10
errorCode=2
errorMessage=No such file
language=
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.363 : No such file : /TNDUPENS/VTest.txt
DEBUG [SSHFTPClient] 7 mar 2007 16:49:54.379 : Remote path=/TNDUPENS/VTest.txt
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.379 : GetAttributes(/TNDUPENS/VTest.txt)
ALL [SFTPMessage] 7 mar 2007 16:49:54.379 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=11
path=/TNDUPENS/VTest.txt
DEBUG [PlainSocket] 7 mar 2007 16:49:54.410 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.410 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.410 : AddMessage(11) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.410 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=11
errorCode=2
errorMessage=No such file
language=
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.410 : No such file : /TNDUPENS/VTest.txt
ALL [SFTPMessage] 7 mar 2007 16:49:54.426 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=12
absolutePath=/TNDUPENS/VTest.txt
flags=10
attributes=US=, G=, D=False, F=False, LI=False, R=True, W=True, AT=0, AD=01-01-1970 00:00:00, MT=0, MD=01-01-1970 00:00:00, P=493, S=0, U=prwxr-xr-x
DEBUG [PlainSocket] 7 mar 2007 16:49:54.457 : RepeatCallback received 68 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.457 : Received message (type=102)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.457 : AddMessage(12) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.457 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=12
handle=00000000
ALL [SFTPMessage] 7 mar 2007 16:49:54.457 : Send : Name=SSH_FXP_WRITE,Type=6,RequestID=13
handle=00000000,offset=0,datalen=324
DEBUG [PlainSocket] 7 mar 2007 16:49:54.504 : RepeatCallback received 68 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.504 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.504 : AddMessage(13) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.504 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=13
errorCode=0
errorMessage=Success
language=
ALL [SFTPMessage] 7 mar 2007 16:49:54.504 : Send : Name=SSH_FXP_CLOSE,Type=4,RequestID=14
handle=00000000
DEBUG [PlainSocket] 7 mar 2007 16:49:54.723 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.723 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.723 : AddMessage(14) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.723 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=14
errorCode=0
errorMessage=Success (bnum=#12499)
language=
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.723 : GetAttributes(/TNDUPENS/VTest.txt)
ALL [SFTPMessage] 7 mar 2007 16:49:54.723 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=15
path=/TNDUPENS/VTest.txt
DEBUG [PlainSocket] 7 mar 2007 16:49:54.754 : RepeatCallback received 84 bytes
DEBUG [SFTPMessageFactory] 7 mar 2007 16:49:54.754 : Received message (type=101)
DEBUG [SFTPMessageStore] 7 mar 2007 16:49:54.754 : AddMessage(15) - added to store
ALL [SFTPMessage] 7 mar 2007 16:49:54.754 : Reply : Name=SSH_FXP_STATUS,Type=101,RequestID=15
errorCode=2
errorMessage=No such file
language=
DEBUG [SFTPSubsystem] 7 mar 2007 16:49:54.754 : No such file : /TNDUPENS/VTest.txt
0 votes
by (162k points)
By default, the client does a permission change after creating the file, which is done to ensure the file permissions are correct. The following disables this operation. Usually this has no side-effects and is therefore safe to do.

ftp.ServerCompatibility = SecureFTPCompatibilityFlags.SSHDisableChmodAfterPut;

Note these are bitwise flags if you are using any already ...
0 votes
by (380 points)
Thanks, that solved my problem

Categories

...