Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

This issue has been added to the tracker:
https://winscp.net/tracker/1515
martin

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.
mave

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.
martin

Re: InvalidOperationException thrown at Session.EnumerateRemoteFiles in WinSCPNet

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

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