Topic "Error Element "cwd" not found in the log file"

Author Message
gaurav245
[View user's profile]

Joined: 2015-02-27
Posts: 1
Location: New Delhi
Hi,

i am facing an issue while trying to open a session.
The error is that "Element "cwd" not found in the log file".

{
{WinSCP.SessionLocalException: Element "cwd" not found in the log file
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags) in D:\winscp570source\dotnet\Internal\CustomLogReader.cs:line 100
}


Code:

SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Sftp,
HostName = "ftp", //hostname e.g. IP: 192.54.23.32, or mysftpsite.com
UserName = "abc",
Password = "12345",
PortNumber = 22,
SshHostKeyFingerprint = "ssh-rsa 1024 ff:22:8d:cb:44:3f:88:75:73:6d:9a:55:72:bb:b8:a1"
};


session.DebugLogPath = "D:\\sftpLog\\WinSCPnet.dll.CodeAnalysisLog.xml";
session.DisableVersionCheck = true;

session.Open(sessionOptions); //Attempts to connect to your sFtp site



Can you please point to the direct direction or let me know what am i missing?

Regards,
Gaurav Sachdeva
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please attach full session and debug log files showing the problem (using the latest version of WinSCP).

To generate log files, set Session.SessionLogPath and Session.DebugLogPath. Submit the logs with your post as an attachment. If you do not want to post the log publicly, you can mark the attachment as private.
etutorcity
[View user's profile]

Joined: 2015-03-17
Posts: 1
Hi,
Is there a solution to this Error Element "cwd" not found in the log file? I have this error when trying to open the Session. Please advise. Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
etutorcity wrote:
Is there a solution to this Error Element "cwd" not found in the log file? I have this error when trying to open the Session. Please advise. Thanks.

The same answer as above.
_________________
Martin Prikryl
Jahn_Hlsi
[View user's profile]

Joined: 2015-06-14
Posts: 2
Location: Switzerland
I had the same error : "cwd" not found in the log file

the problem was with the Installed winscp version, I have replaced the winscp.exe from the .NET assembly / COM library and my problem was solved,

The version of C:\Program Files (x86)\WinSCP\winscp.exe (5.5.5.0) does not match version of this assembly C:\Program Files (x86)\WinSCP\WinSCPnet.dll (5.7.3.0).
You can disable this check using Session.DisableVersionCheck (not recommended).
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