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

Jahn_Hlsi

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).
martin

Re: Error Element "cwd" not found in the log file

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.
etutorcity

Error Element "cwd" not found in the log file

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

Re: Error Element "cwd" not found in the log file

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.
gaurav245

Error Element "cwd" not found in the log file

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