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: Error: Exception: System.IO.IOException:

Anonymous wrote:

This url does not work.

You need to login to access it.
Anyway, upgrade to 5.0.7 beta.
https://winscp.net/tracker/849
ted1001

The error is because temp folder is filled with tmp files created by Winscp.
Remove these and it will work.
(On a MS Server 2008, the files were create here: C:\Users\<useraccount>\AppData\Local\Temp
Guest

Re: Error: Exception: System.IO.IOException:

martin wrote:



This url does not work.
I got the same problem - would really appreciate help on this one.
jmsunseri

Error: Exception: System.IO.IOException:

It should also be said that I am doing this using the SFTP protocol and the .Net assembly version 5.0.6.
jmsunseri

Error: Exception: System.IO.IOException:

When I try to open a session i get the following error in my logs

[2012-05-11 13:25:19Z] [0004] Executing Assembly: WinSCP, Version=1.0.0.235, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXXXX; Path: D:/XmlProcessorService/bin/WinSCP.DLL; Location: D:\XmlProcessorService\bin\WinSCP.dll; Product: 5.0.6.0
[2012-05-11 13:25:19Z] [0004] Entry Assembly: XMLProcessorService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[2012-05-11 13:25:19Z] [0004] Operating system: Microsoft Windows NT 5.2.3790 Service Pack 1
[2012-05-11 13:25:19Z] [0004] User: _svc_maed@XXXXXXXXXX@XXXXXXXXXX; Interactive: False
[2012-05-11 13:25:19Z] [0004] Runtime: 2.0.50727.1433
[2012-05-11 13:25:19Z] [0004] Console encoding: Input: Western European (Windows) (1252); Output: Western European (Windows) (1252)
[2012-05-11 13:25:19Z] [0004] Session.Open entering
[2012-05-11 13:25:28Z] [0004] Exception: System.IO.IOException: The file exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.Path.GetTempFileName()
at WinSCP.Session.Open(SessionOptions sessionOptions)
[2012-05-11 13:25:28Z] [0004] Session.Cleanup entering
[2012-05-11 13:25:28Z] [0004] Session.Cleanup leaving
[2012-05-11 13:25:28Z] [0004] Session.Open leaving
[2012-05-11 13:25:28Z] [0004] Session.Open entering
[2012-05-11 13:25:37Z] [0004] Exception: System.IO.IOException: The file exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.Path.GetTempFileName()
at WinSCP.Session.Open(SessionOptions sessionOptions)
[2012-05-11 13:25:37Z] [0004] Session.Cleanup entering
[2012-05-11 13:25:37Z] [0004] Session.Cleanup leaving
[2012-05-11 13:25:37Z] [0004] Session.Open leaving
[2012-05-11 13:25:37Z] [0004] Session.PutFiles entering
[2012-05-11 13:25:37Z] [0004] Session.PutFiles leaving
[2012-05-11 13:25:37Z] [0004] Session.Dispose entering
[2012-05-11 13:25:37Z] [0004] Session.Cleanup entering
[2012-05-11 13:25:37Z] [0004] Session.Cleanup leaving


I've noticed that it is in consistent in that the same code will produce different results depending on the computer is is being run from. On my machine I have no problem establishing a connection to the remote server. When I run my code from my production server I get the above error. Any help would be greatly appreciated.

Thanks,
Justin