Topic "ASP.NET Error parsing session log file"

Author Message
mythos8
[View user's profile]

Joined: 2013-02-07
Posts: 3
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Please set Session.DebugLogPath and attach the log.
mythos8
[View user's profile]

Joined: 2013-02-07
Posts: 3
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.
J

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Mesquida86

Guest


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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
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).
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License