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

Author Message
oklatt
[View user's profile]

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

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

Code:
Dim ComResult As WinSCP.CommandExecutionResult
try
 comResult = session.ExecuteCommand("MKDIR " & strRemoteDir & strDirZeitstempel)
catch ex as Exception
End Try


I get this error message:

Quote:
{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 Very Happy
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
See remarks section on Session.ExecuteCommand article to understand why you possibly cannot use it.
http://winscp.net/eng/docs/library_session_executecommand#remarks

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

This bug is a cause, why you are getting the strange error message:
http://winscp.net/tracker/show_bug.cgi?id=871
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License