Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

oklatt

Error during creating a directory on a SFTP Server

Hello,

I have to create a directory on a SFTP Server. I use the .net assemby 5.0.7.

Dim ComResult As WinSCP.CommandExecutionResult

try
 comResult = session.ExecuteCommand("MKDIR " & strRemoteDir & strDirZeitstempel)
catch ex as Exception
End Try


I get this error message:

{WinSCP.SessionLocalException: Element "call" not found in the log file" & vbCrLf & " bei WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)" & vbCrLf & " bei WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)" & vbCrLf & " bei WinSCP.Session.ExecuteCommand(String command)" & vbCrLf & " bei Export.ExportFiles() in C:\_.NET\x.vb:Zeile 146.}


Is there any way to create a directory on a SFTP Server with .net?

Thanks

Olaf :D