Error Element "cwd" not found in the log file

Advertisement

gaurav245
Joined:
Posts:
1
Location:
New Delhi

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

etutorcity
Joined:
Posts:
1

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.

Reply with quote

martin
Site Admin
martin avatar

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.

Reply with quote

Jahn_Hlsi
Joined:
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).

Reply with quote

Advertisement

You can post new topics in this forum