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

Advertisement

GTSwindell
Joined:
Posts:
3
Location:
United Kingdom

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
  • FTPSession.log (16.07 KB, Private file)
  • FTPDebug.log (39.57 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,552
Location:
Prague, Czechia

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.

Reply with quote

GTSwindell
Joined:
Posts:
3
Location:
United Kingdom

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

Reply with quote

martin
Site Admin
martin avatar

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.

Reply with quote

GTSwindell
Joined:
Posts:
3
Location:
United Kingdom

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
  • FTPSession.log (15.84 KB, Private file)
  • FTPDebug.log (41.51 KB, Private file)

Reply with quote

Advertisement

sushma
Joined:
Posts:
2
Location:
India

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?

Reply with quote

Advertisement

You can post new topics in this forum