Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

sushma

Root element is missing.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at WinSCP.SessionLogReader.DoRead()

I saw in the tracker it has been fixed. But we could not see the latest version in nuget, the latest is 5.13.1 only, i am using it already.

Still i am getting the above exception?
any suggestion?
martin

Re: Error parsing session log file Root element is missing. Root element is missing.

This issue has been added to the tracker:
https://winscp.net/tracker/1619
GTSwindell

Re: Error parsing session log file Root element is missing. Root element is missing.

martin wrote:

Sorry, I didn't send you an updated version of the assembly itself.
Sent now.


Thanks Martin

I have attached the log and session files generated using the new library.

Many thanks
martin

Re: Error parsing session log file Root element is missing. Root element is missing.

Sorry, I didn't send you an updated version of the assembly itself.
Sent now.
GTSwindell

Re: Error parsing session log file Root element is missing. Root element is missing.

martin wrote:

Thanks for your report.
I have sent you an email with a testing version of WinSCP to the address you have used to register on this forum.


Hi Martin,

Many thanks. Do you have a 5.14 version of the .NET library. I'm seeing

"The version of D:\User-Applications\TNT\FTP_Service\winscp.exe (5.14.0.0) does not match version of this assembly D:\User-Applications\TNT\FTP_Service\WinSCPnet.DLL (5.13.0.0)."

Thanks
Glen
martin

Re: Error parsing session log file Root element is missing. Root element is missing.

Thanks for your report.
I have sent you an email with a testing version of WinSCP to the address you have used to register on this forum.
GTSwindell

Error parsing session log file Root element is missing. Root element is missing.

Hi,

We have an application that uses the WinSCP .NET libraries to access sFTP sites. Occassionally during the day we will get the above exception being reported during the WinSCP.Session.Open call.

EXCEPTION:
Error parsing session log file
Root element is missing.
STACK TRACE:
at WinSCP.SessionLogReader.DoRead()
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.Session.Open(SessionOptions sessionOptions)

Are you able to assist me in working out what is causing this please. I have attached the log files generated by WinSCP

Many thanks