Upload randomly fails
When uploading a large amount of files, it randomly fails. Once in a while it even completes successfully.
Using .NET, the version of the WinSCPNet is 1.3.6.7136.
Im using the following code:
The message I get back is: Error transferring file 'c:\a\xxxx.txt', Copying files to remote side failed.
When I look at the server log all I see is: FAILED UPLOAD
No other information is given as to WHY it failed.
Using .NET, the version of the WinSCPNet is 1.3.6.7136.
Im using the following code:
With mySessionOptions .Protocol = Protocol.Ftp .HostName = "vaultcracker2" .UserName = "XXXXX" .Password = "XXXXXXXXX" End With Using mySession As Session = New Session Dim transferOptions As New TransferOptions transferOptions.TransferMode = TransferMode.Automatic transferOptions.SpeedLimit = 2500 transferOptions.ResumeSupport.State = TransferResumeSupportState.Smart ' Connect mySession.Open(mySessionOptions) 'Create Remote folder If (mySession.FileExists(szRemoteFolder) = False) Then mySession.CreateDirectory(szRemoteFolder) End If ' Upload files transferResult = mySession.PutFiles(szSavedFolder, szRemoteFolder, False, transferOptions) ' Throw on any error transferResult.Check() For Each transfer In transferResult.Transfers Console.WriteLine("Upload of {0} succeeded", transfer.FileName) Next End Using
The message I get back is: Error transferring file 'c:\a\xxxx.txt', Copying files to remote side failed.
When I look at the server log all I see is: FAILED UPLOAD
No other information is given as to WHY it failed.