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: temp storage issue

If you tried it too many times, it may be this bug:
https://winscp.net/tracker/996

Upgrade to the latest version and restart your computer.
steeveclarke

Re: temp storage issue

martin wrote:

There's (undocumented) property Session.XmlLogPath.


Hi Martin

If I add Session.XmlLogPath prior to session.Open(sessionOptions) I get this timeout error:

"Timeout waiting for WinSCP to respond - WinSCP has not responded in time (response log file C:\\Users\\clarkes\\Documents\\Projects\\SKYIQInbound\\SKYIQInbound\\Files\\TempStoragePath\\ was not created). This could indicate lack of write permissions to the log folder or problems starting WinSCP itself"

I know the path has read/write permissions so its not a permission issue

Any ideas?
martin

Re: temp storage issue

There's (undocumented) property Session.XmlLogPath.
steeveclarke

temp storage issue

Hi

I am using the Winscp.dll in C# along with Winscp.exe which is 5.1.0 Build 2625.

The problem I am having is that when getting files on an sFTP connection, it uses the windows temp directory to store files it is buffering. even if I specify a different storage location in winscp.exe the dll is still using the windows temp location. This is a problem as when I deploy the program to a server (Windows Server 2012), I do not have write permissons to the temp directory. I get the following error:

"sFTP error Access to the path 'C:\Users\Default\AppData\Local\Temp\tmp2795.tmp' is denied"

Any thoughts on what I can do to configure the winSCP dll to store temp files in a specified location? There seems to be no way to configure it in the API

I have tried the latest version of the dll, WinSCPnet.dll and the same thing happens.