Session Class

Advertisement

kmdshuaib
Joined:
Posts:
1
Location:
Singapore

Session Class

Hi,
Whenever i create a new session object for session class, it take approximately around 2 mins, is this normal behavior with the code or any problem in the code.
For your reference i am listing my code, and the highlighted line is the cause.

SessionOptions sessionOptions = new SessionOptions
                {
                    Protocol =  Protocol.Ftp,
                    HostName = strSFtpSite,
                    UserName = strSFtpUserName,
                    Password = strSFtpPassword,
                    PortNumber = 21, 
                    FtpMode = FtpMode.Passive,
                    FtpSecure = FtpSecure.None
                };

              [color=red][b] using (var session = new Session())[/b][/color]   [color=green][i]//this is the line which is taking time [/i][/color]
                {
                    session.SessionLogPath = "SessionWinSCP.txt";
                    session.Open(sessionOptions);
                   
                    if (!Directory.Exists(strDestination))
                    {
                        Logger.Info("Creating destination directory " + strDestination + ".");
                        Directory.CreateDirectory(strDestination);
                    }
                    session.GetFiles( strSourceFileName, strDestination).Check();
                       
                    session.Dispose();
                 
                }

Please help me on this.

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
30,899
Location:
Prague, Czechia

Re: Session Class

Please set Session.DebugLogPath and Session.SessionLogPath and post both logs or email them to me.
_________________
Martin Prikryl

Reply with quote

uzzieljv
Joined:
Posts:
7

This is my DebugLogPath

[2013-04-10 19:42:27.272Z] [0001] Executing Assembly: WinSCP, Version=1.0.5.2937, Culture=neutral, PublicKeyToken=b5f19f5762436b89; Path: C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\WinSCP.DLL; Location: C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\WinSCP.dll; Product: 5.1.4.0
[2013-04-10 19:42:27.272Z] [0001] Entry Assembly: SFTP_Client_WinSCP.NET_Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[2013-04-10 19:42:27.272Z] [0001] Operating system: Microsoft Windows NT 6.1.7600.0
[2013-04-10 19:42:27.288Z] [0001] User: ujimenez@PTCORP@PC-UJ; Interactive: True
[2013-04-10 19:42:27.288Z] [0001] Runtime: 4.0.30319.296
[2013-04-10 19:42:27.444Z] [0001] Console encoding: Input: Europa occidental (DOS) (850); Output: Europa occidental (DOS) (850)
[2013-04-10 19:42:27.444Z] [0001] Working directory: C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug
[2013-04-10 19:42:27.522Z] [0001] CallstackAndLock..ctor entering
[2013-04-10 19:42:27.522Z] [0001] Session.SetupTempPath entering
[2013-04-10 19:42:27.522Z] [0001] Temporary folder: C:\Users\ujimenez\AppData\Local\Temp\
[2013-04-10 19:42:27.522Z] [0001] Temporary file [C:\Users\ujimenez\AppData\Local\Temp\wscp03A8.0141B42A.tmp] - Exists [False]
[2013-04-10 19:42:27.522Z] [0001] Session.SetupTempPath leaving
[2013-04-10 19:42:27.522Z] [0001] ExeSessionProcess..ctor entering
[2013-04-10 19:42:27.522Z] [0001] ExeSessionProcess.GetExecutablePath entering
[2013-04-10 19:42:27.538Z] [0001] Executable not found in C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\winscp.exe
[2013-04-10 19:42:27.538Z] [0001] ExeSessionProcess.GetExecutablePath leaving
[2013-04-10 19:42:27.538Z] [0001] EXE executable path resolved to C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\winscp.exe
[2013-04-10 19:42:27.538Z] [0001] ExeSessionProcess.CheckVersion entering
[2013-04-10 19:42:27.538Z] [0001] Version of C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\winscp.exe is 5.1.4.3020, product WinSCP version is 5.1.4.0
[2013-04-10 19:42:27.538Z] [0001] ExeSessionProcess.CheckVersion leaving
[2013-04-10 19:42:27.538Z] [0001] ExeSessionProcess..ctor leaving
[2013-04-10 19:42:27.538Z] [0001] ExeSessionProcess.Start entering
[2013-04-10 19:42:27.553Z] [0001] ExeSessionProcess.InitializeConsole entering
[2013-04-10 19:42:27.553Z] [0001] ExeSessionProcess.InitializeConsole leaving
[2013-04-10 19:42:27.553Z] [0001] ExeSessionProcess.InitializeChild entering
[2013-04-10 19:42:27.553Z] [0001] Starting "C:\Users\ujimenez\Documents\Pruebas\SFTP Client WinSCP .NET Assembly\SFTP Client WinSCP .NET Assembly\bin\Debug\winscp.exe" /xmllog="C:\Users\ujimenez\AppData\Local\Temp\wscp03A8.0141B42A.tmp" /xmlgroups /nointeractiveinput /dotnet=514 /ini=nul /log="SessionLogPath" /console /consoleinstance=_936_174
[2013-04-10 19:42:27.569Z] [0001] Started process 7508
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.InitializeChild leaving
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.Start leaving
[2013-04-10 19:42:27.569Z] [0001] Command: [option batch on]
[2013-04-10 19:42:27.569Z] [0003] ExeSessionProcess.ProcessEvents entering
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand entering
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand leaving
[2013-04-10 19:42:27.569Z] [0001] Command: [option confirm off]
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand entering
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand leaving
[2013-04-10 19:42:27.569Z] [0001] Session.SessionOptionsToOpenArguments entering
[2013-04-10 19:42:27.569Z] [0001] Session.SessionOptionsToOpenSwitches entering
[2013-04-10 19:42:27.569Z] [0001] Session.SessionOptionsToOpenSwitches leaving
[2013-04-10 19:42:27.569Z] [0001] Session.SessionOptionsToOpenArguments leaving
[2013-04-10 19:42:27.569Z] [0001] Command: [open -hostkey="ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -timeout=15 "sftp://myuser:****@ftp.myftp.com"]
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand entering
[2013-04-10 19:42:27.569Z] [0001] ExeSessionProcess.ExecuteCommand leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInitEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInitEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2013-04-10 19:42:27.912Z] [0003] Not-supported title event [WinSCP]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2013-04-10 19:42:27.912Z] [0003] Not-supported title event [WinSCP]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent entering
[2013-04-10 19:42:27.912Z] [0003] Scheduling output: [winscp> option batch on]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] Scheduling output: [batch on ]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2013-04-10 19:42:27.912Z] [0003] Not-supported title event [WinSCP]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent entering
[2013-04-10 19:42:27.912Z] [0003] Scheduling output: [winscp> option confirm off]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] Scheduling output: [confirm off ]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2013-04-10 19:42:27.912Z] [0003] Not-supported title event [WinSCP]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent entering
[2013-04-10 19:42:27.912Z] [0003] Scheduling output: [winscp> open -hostkey="ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -timeout=15 "sftp://myuser:******@ftp.myftp.com"]
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2013-04-10 19:42:27.912Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.927Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:27.927Z] [0003] Scheduling output: [Searching for host...]
[2013-04-10 19:42:27.927Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:27.943Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:27.943Z] [0001] Opening log
[2013-04-10 19:42:27.943Z] [0001] Log opened with write sharing
[2013-04-10 19:42:27.943Z] [0001] Skipping 0 nodes
[2013-04-10 19:42:27.974Z] [0001] Read node 1: XmlDeclaration xml=version="1.0" encoding="UTF-8"
[2013-04-10 19:42:27.974Z] [0001] Log contents:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="myuser@ftp.myftp.com" start="2013-04-11T01:42:27.912Z">

[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:27.974Z] [0001] Read node 2: Whitespace

[2013-04-10 19:42:27.974Z] [0001] Log contents has not changed
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:27.974Z] [0001] Read node 3: Element session
[2013-04-10 19:42:27.974Z] [0001] Log contents has not changed
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:27.974Z] [0001] Read node 4: Whitespace

[2013-04-10 19:42:27.974Z] [0001] Log contents has not changed
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:27.974Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:27.974Z] [0001] Closing log
[2013-04-10 19:42:27.974Z] [0001] Error parsing session log file, but it is not closed yet, will retry
[2013-04-10 19:42:27.974Z] [0001] Waiting for log update and dispatching events for 125
[2013-04-10 19:42:27.974Z] [0001] Output: [winscp> option batch on]
[2013-04-10 19:42:27.974Z] [0001] Output: [batch on ]
[2013-04-10 19:42:27.974Z] [0001] Output: [winscp> option confirm off]
[2013-04-10 19:42:27.974Z] [0001] Output: [confirm off ]
[2013-04-10 19:42:27.974Z] [0001] Output: [winscp> open -hostkey="ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -timeout=15 "sftp://myuser:******@ftp.myftp.com"]
[2013-04-10 19:42:27.974Z] [0001] Output: [Searching for host...]
[2013-04-10 19:42:28.052Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:28.052Z] [0003] Scheduling output: [Connecting to host...]
[2013-04-10 19:42:28.052Z] [0001] Output: [Connecting to host...]
[2013-04-10 19:42:28.052Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:28.115Z] [0001] Opening log
[2013-04-10 19:42:28.115Z] [0001] Log opened with write sharing
[2013-04-10 19:42:28.115Z] [0001] Skipping 4 nodes
[2013-04-10 19:42:28.115Z] [0001] Closing log
[2013-04-10 19:42:28.115Z] [0001] Error parsing session log file, but it is not closed yet, will retry
[2013-04-10 19:42:28.115Z] [0001] Waiting for log update and dispatching events for 250
[2013-04-10 19:42:28.380Z] [0001] Opening log
[2013-04-10 19:42:28.380Z] [0001] Log opened with write sharing
[2013-04-10 19:42:28.380Z] [0001] Skipping 4 nodes
[2013-04-10 19:42:28.380Z] [0001] Closing log
[2013-04-10 19:42:28.380Z] [0001] Error parsing session log file, but it is not closed yet, will retry
[2013-04-10 19:42:28.380Z] [0001] Waiting for log update and dispatching events for 500
[2013-04-10 19:42:28.895Z] [0001] Opening log
[2013-04-10 19:42:28.895Z] [0001] Log opened with write sharing
[2013-04-10 19:42:28.895Z] [0001] Skipping 4 nodes
[2013-04-10 19:42:28.895Z] [0001] Closing log
[2013-04-10 19:42:28.895Z] [0001] Error parsing session log file, but it is not closed yet, will retry
[2013-04-10 19:42:28.895Z] [0001] Waiting for log update and dispatching events for 1000
[2013-04-10 19:42:28.988Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:28.988Z] [0003] Scheduling output: [Authenticating...]
[2013-04-10 19:42:28.988Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:28.988Z] [0001] Output: [Authenticating...]
[2013-04-10 19:42:29.347Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:29.347Z] [0003] Scheduling output: [Using username "myuser".]
[2013-04-10 19:42:29.347Z] [0001] Output: [Using username "myuser".]
[2013-04-10 19:42:29.347Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:29.456Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:29.456Z] [0003] Scheduling output: [Authenticating with pre-entered password.]
[2013-04-10 19:42:29.456Z] [0001] Output: [Authenticating with pre-entered password.]
[2013-04-10 19:42:29.456Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:29.908Z] [0001] Opening log
[2013-04-10 19:42:29.908Z] [0001] Log opened with write sharing
[2013-04-10 19:42:29.908Z] [0001] Skipping 4 nodes
[2013-04-10 19:42:29.908Z] [0001] Closing log
[2013-04-10 19:42:29.908Z] [0001] Error parsing session log file, but it is not closed yet, will retry
[2013-04-10 19:42:29.908Z] [0001] Waiting for log update and dispatching events for 1000
[2013-04-10 19:42:30.002Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.002Z] [0003] Scheduling output: [Authenticated.]
[2013-04-10 19:42:30.002Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.002Z] [0001] Output: [Authenticated.]
[2013-04-10 19:42:30.002Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.002Z] [0003] Scheduling output: [Starting the session...]
[2013-04-10 19:42:30.002Z] [0001] Output: [Starting the session...]
[2013-04-10 19:42:30.002Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.111Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.111Z] [0003] Scheduling output: [Reading remote directory...]
[2013-04-10 19:42:30.111Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.111Z] [0001] Output: [Reading remote directory...]
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.220Z] [0003] Scheduling output: [Session started.]
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.220Z] [0001] Output: [Session started.]
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.220Z] [0003] Scheduling output: [Active session: [1] myuser@ftp.myftp.com]
[2013-04-10 19:42:30.220Z] [0001] Output: [Active session: [1] myuser@ftp.myftp.com]
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessTitleEvent entering
[2013-04-10 19:42:30.220Z] [0003] Not-supported title event [myuser@ftp.myftp.com - WinSCP]
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessTitleEvent leaving
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.220Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:30.236Z] [0003] ExeSessionProcess.ProcessEvent entering
[2013-04-10 19:42:30.236Z] [0003] ExeSessionProcess.ProcessInputEvent entering
[2013-04-10 19:42:30.922Z] [0001] Opening log
[2013-04-10 19:42:30.922Z] [0001] Log opened with write sharing
[2013-04-10 19:42:30.922Z] [0001] Skipping 4 nodes
[2013-04-10 19:42:30.922Z] [0001] Read node 5: Element group
[2013-04-10 19:42:30.922Z] [0001] Log contents:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="myuser@ftp.myftp.com" start="2013-04-11T01:42:27.912Z">
<group name="-hostkey=&quot;ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx&quot; -timeout=15 sftp://myuser:***@ftp.myftp.com" start="2013-04-11T01:42:30.220Z">
</group>

[2013-04-10 19:42:30.922Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:30.922Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:30.922Z] [0001] Read node 6: Whitespace

[2013-04-10 19:42:30.922Z] [0001] Log contents has not changed
[2013-04-10 19:42:30.922Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:30.922Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:30.922Z] [0001] Read node 7: EndElement group
[2013-04-10 19:42:30.922Z] [0001] Log contents has not changed
[2013-04-10 19:42:30.922Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:30.922Z] [0001] ElementLogReader.Dispose entering
[2013-04-10 19:42:30.922Z] [0001] ElementLogReader.ReadToEnd entering
[2013-04-10 19:42:30.922Z] [0001] ElementLogReader.ReadToEnd leaving
[2013-04-10 19:42:30.922Z] [0001] ElementLogReader.Dispose leaving
[2013-04-10 19:42:30.922Z] [0001] CallstackAndLock..ctor leaving
[2013-04-10 19:42:30.922Z] [0001] CallstackAndLock..ctor entering
[2013-04-10 19:42:30.922Z] [0001] Session.DoDispose entering
[2013-04-10 19:42:30.922Z] [0001] Session.Cleanup entering
[2013-04-10 19:42:30.922Z] [0001] Terminating process
[2013-04-10 19:42:30.922Z] [0001] Command: [exit]
[2013-04-10 19:42:30.922Z] [0001] ExeSessionProcess.ExecuteCommand entering
[2013-04-10 19:42:30.922Z] [0001] ExeSessionProcess.ExecuteCommand leaving
[2013-04-10 19:42:30.922Z] [0001] ExeSessionProcess.Close entering
[2013-04-10 19:42:30.922Z] [0001] Waiting for process to exit
[2013-04-10 19:42:30.922Z] [0003] Scheduling output: [winscp> exit]
[2013-04-10 19:42:30.922Z] [0003] ExeSessionProcess.ProcessInputEvent leaving
[2013-04-10 19:42:30.922Z] [0003] ExeSessionProcess.ProcessEvent leaving
[2013-04-10 19:42:31.172Z] [0001] ExeSessionProcess.Close leaving
[2013-04-10 19:42:31.172Z] [0001] ExeSessionProcess.Dispose entering
[2013-04-10 19:42:31.250Z] [0003] Aborted
[2013-04-10 19:42:31.250Z] [0003] ExeSessionProcess.ProcessEvents leaving
[2013-04-10 19:42:31.250Z] [0001] ExeSessionProcess.Dispose leaving
[2013-04-10 19:42:31.250Z] [0001] Disposing log readers
[2013-04-10 19:42:31.250Z] [0001] ElementLogReader.Dispose entering
[2013-04-10 19:42:31.250Z] [0001] ElementLogReader.ReadToEnd entering
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 8: Whitespace

[2013-04-10 19:42:31.250Z] [0001] Log contents:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="myuser@ftp.myftp.com" start="2013-04-11T01:42:27.912Z">
<group name="-hostkey=&quot;ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx&quot; -timeout=15 sftp://myuser:***@ftp.myftp.com" start="2013-04-11T01:42:30.220Z">
</group>
<group name="exit" start="2013-04-11T01:42:30.922Z">
</group>
</session>

[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 9: Element group
[2013-04-10 19:42:31.250Z] [0001] Log contents has not changed
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 10: Whitespace

[2013-04-10 19:42:31.250Z] [0001] Log contents has not changed
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 11: EndElement group
[2013-04-10 19:42:31.250Z] [0001] Log contents has not changed
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 12: Whitespace

[2013-04-10 19:42:31.250Z] [0001] Log contents has not changed
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read entering
[2013-04-10 19:42:31.250Z] [0001] Read node 13: EndElement session
[2013-04-10 19:42:31.250Z] [0001] Log contents has not changed
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Read leaving
[2013-04-10 19:42:31.250Z] [0001] ElementLogReader.ReadToEnd leaving
[2013-04-10 19:42:31.250Z] [0001] ElementLogReader.Dispose leaving
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Dispose entering
[2013-04-10 19:42:31.250Z] [0001] Closing log
[2013-04-10 19:42:31.250Z] [0001] SessionLogReader.Dispose leaving
[2013-04-10 19:42:31.250Z] [0001] Deleting XML log file [C:\Users\ujimenez\AppData\Local\Temp\wscp03A8.0141B42A.tmp]
[2013-04-10 19:42:31.250Z] [0001] Session.Cleanup leaving
[2013-04-10 19:42:31.437Z] [0001] CPU Load [363.1768%]
[2013-04-10 19:42:31.437Z] [0001] Disposing logger, no more logging

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
30,899
Location:
Prague, Czechia

Re: To me it is the same.

uzzieljv wrote:

Hello
To me it is the same.
Can you help me?
These are the files.
The logs seem to span only 4 seconds. Can you record times before and after you create the Session class?
_________________
Martin Prikryl

Reply with quote

uzzieljv
Joined:
Posts:
7

Hi

I Replace the library by the Beta (WinSCP 520 Beta), and it works.

Still having the problem that takes a long time, but now in the following line:
Cliente.DebugLogPath = "DebugLog";
Which to remove it without take as long as it works.

This line works well (do not need to remove it):
Cliente.SessionLogPath = "SessionLog";

It seems that the problem is with the Debug Log.

Good day.

Reply with quote

Advertisement

You can post new topics in this forum