Re: Element session@0 already read to the end
Your duplicate post:
https://winscp.net/forum/viewtopic.php?t=25658
https://winscp.net/forum/viewtopic.php?t=25658
Element session@0 already read to the end
System.InvalidOperationException: Element session@0 already read to the end
在 WinSCP.ElementLogReader.Read(LogReadFlags flags)
在 WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
在 WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
在 WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
在 WinSCP.Session.GetFiles(String remotePath, String localPath, Boolean remove, TransferOptions options)
public override bool Read(LogReadFlags flags)
{
if (_read)
{
throw Session.Logger.WriteException(
new InvalidOperationException(
string.Format(CultureInfo.CurrentCulture, "Element {0} already read to the end", _token)));
}
bool result = _parentReader.Read(flags);
if (result &&
IsEndElement(_localName) &&
(Depth == _depth))
{
result = false;
Session.Logger.WriteLineLevel(1, "Element {0} read to the end", _token);
_read = true;
}
return result;
}