Topic "Error during creating a directory on a SFTP Server"

Author Message
[View user's profile]

Joined: 2012-07-05
Posts: 1
Location: Deutschland

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

Dim ComResult As WinSCP.CommandExecutionResult
 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?


Olaf Very Happy
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
See remarks section on Session.ExecuteCommand article to understand why you possibly cannot use it.

Also check session log file (or attach it here).

This bug is a cause, why you are getting the strange error message:
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License