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: winscp is not generating the log file when used with .NET

Can you post more code? What version of WinSCP are you using?

Also, you should better use WinSCP .NET assembly anyway:
https://winscp.net/eng/docs/library
jiminssy

winscp is not generating the log file when used with .NET

I have followed the guidelines on https://winscp.net/eng/docs/guide_dotnet#log.
.NET Process initially complained about not being able to locate winscp.com to run it,
so I moved the winscp.com file to the right location, so I know it is running winscp now.

I have put in some scripting for the winscp Process to run.
Problem now is it's not generating the log.xml. I have no idea where I made mistakes in the scripts.

The code

XPathDocument log = new XPathDocument("log.xml");

throws an IO.FileNotFoundException saying log.xml could not be found.