Topic "temp storage issue"

Author Message
steeveclarke
[View user's profile]

Joined: 2014-04-11
Posts: 2
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
There's (undocumented) property Session.XmlLogPath.
_________________
Martin Prikryl
steeveclarke
[View user's profile]

Joined: 2014-04-11
Posts: 2
prikryl 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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
If you tried it too many times, it may be this bug:
http://winscp.net/tracker/show_bug.cgi?id=996

Upgrade to the latest version and restart your computer.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License