ASP.NET Error parsing session log file

Advertisement

mythos8
Joined:
Posts:
3

ASP.NET Error parsing session log file

Hello,

There were only 4 views and 3 of them are mine when I posted this in the .NET section so I'm re-posting it here.

I copied the example code straight from the .NET & Com Library examples and obviously edited the host, credentials and key. I'm getting an "Error parsing session log file" when I try to open a session in my C# ASP.NET project. I only have some basic transfers to peform so I don't really need logging. But I cannot seem to turn logging off. If nothing else I would need to get logging working but can it be turned off? A new session defautls to NULL values for the log paths but this genearates an error. Setting them to "" doesn't work either.

Also the example code does not mention if it works in ASP.NET but I assume that it should?

Thanks.

Reply with quote

Advertisement

mythos8

Thanks for your reply but I ended up reverting the changes I made and went with another solution. If I still had the code I would do as you suggested for your information but I don't have that code anymore.

Reply with quote

J
Guest

Error parsing session log file

Hi,
I have the same problem while sending big (>2GB) zip files in the loop. After finishing sending the first file I get error:
Error parsing session log file

Part of log file below:

[2013-03-08 11:30:23.692Z] [0008] Skipping 76 nodes
[2013-03-08 11:30:23.692Z] [0008] Read node 77: Element group
[2013-03-08 11:30:23.692Z] [0008] Log contents has not changed
[2013-03-08 11:30:23.692Z] [0008] SessionLogReader.Read leaving
[2013-03-08 11:30:23.692Z] [0008] SessionLogReader.Read entering
[2013-03-08 11:30:23.692Z] [0008] Read node 78: Whitespace

[2013-03-08 11:30:23.693Z] [0008] Log contents has not changed
[2013-03-08 11:30:23.693Z] [0008] SessionLogReader.Read leaving
[2013-03-08 11:30:23.693Z] [0008] SessionLogReader.Read entering
[2013-03-08 11:30:23.699Z] [0008] Closing log
[2013-03-08 11:30:23.699Z] [0008] Log contents has not changed
[2013-03-08 11:30:23.705Z] [0008] Exception: WinSCP.SessionLocalException: Error parsing session log file ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: group, session. Line 40, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at WinSCP.SessionLogReader.DoRead()
--- End of inner exception stack trace ---
[2013-03-08 11:30:23.712Z] [0008] SessionLogReader.Read leaving
[2013-03-08 11:30:23.712Z] [0008] ElementLogReader.Dispose entering
[2013-03-08 11:30:23.712Z] [0008] ElementLogReader.ReadToEnd entering
[2013-03-08 11:30:23.712Z] [0008] SessionLogReader.Read entering
[2013-03-08 11:30:23.712Z] [0008] Opening log
[2013-03-08 11:30:23.718Z] [0008] SessionLogReader.Read leaving
[2013-03-08 11:30:23.718Z] [0008] ElementLogReader.ReadToEnd leaving
[2013-03-08 11:30:23.718Z] [0008] Swallowing exception
[2013-03-08 11:30:23.718Z] [0008] ElementLogReader.Dispose leaving
[2013-03-08 11:30:23.718Z] [0008] CallstackAndLock..ctor leaving

Reply with quote

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

Re: Error parsing session log file

J wrote:

I have the same problem while sending big (>2GB) zip files in the loop. After finishing sending the first file I get error:
Error parsing session log file
Please email me a both complete session log file and debug log file.

Reply with quote

Advertisement

Mesquida86
Guest

help me!

Please help me, I have an exception of WinSCP.SessionLocalException and I don't know how can I solve it! this is the exception: Element "group" not found in the log file. WinSCP.SessionLocalException: Element "group" not found in the log file at WinSCP.Session.GetFiles(String remotePath, String localPath, Boolean remove, TransferOptions options)
Could you please help me?
Thanks!

Reply with quote

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

Re: help me!

Mesquida86 wrote:

Please help me, I have an exception of WinSCP.SessionLocalException and I don't know how can I solve it! this is the exception: Element "group" not found in the log file. WinSCP.SessionLocalException: Element "group" not found in the log file at WinSCP.Session.GetFiles(String remotePath, String localPath, Boolean remove, TransferOptions options)
Could you please help me?
Thanks!
Please start a new thread and attach both session log file (Session.SessionLogPath) and debug log file (Session.DebugLogPath).

Reply with quote

Advertisement

You can post new topics in this forum