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