InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

Advertisement

mave
Joined:
Posts:
2
Location:
Liechtenstein

InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

Dear WinSCP support,

I'm developing a C#.NET (.NET-Framework 4.5.2) WinForms client consuming WinSCPNet assembly (scripting interface .NET wrapper).

Whenever I call

Session.EnumerateRemoteFiles(string path, string mask, EnumerationOptions options)

after sucessfully establishing an FTP session to the host, a System.InvalidOperationException is thrown in background, but the client keeps on running.
See the stack trace as follows

Element already read to the end
at WinSCP.ElementLogReader.Read(LogReadFlags flags)

When using the recursive enumeration by
EnumerationOptions.AllDirectories
in the method call, the exception seems to be thrown for each directory node within the directory tree.

I'm working with WinSCPNet version 1.3.6.7136 on .NET-Framework 4.5.2.
The OS of my machine is Windows 10 Pro, 64-Bit edition.

Please find in enclose zip-archive the WinSCP session log and debug log files.

May I kindly ask for your assistance. Thx a lot in advance for any suggestions.

Cheers,
Markus
Description: WinSCP session and debug log files.

Reply with quote

Advertisement

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

Re: InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

Thanks for your report.
Can you post a complete callstack of the exception?

Reply with quote

mave
Joined:
Posts:
2
Location:
Liechtenstein

Re: InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

martin wrote:

Thanks for your report.
Can you post a complete callstack of the exception?

Of course, please the corresponding print screen of the callstack in exception state enclosed.
Please let me know if you need further assistance.

Description: Printscreen of callstack

WinSCP-Callstack.PNG

Reply with quote

martin
Site Admin
martin avatar

Re: InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

You can post new topics in this forum