Topic "Simple .NET Set Up - System.TimeoutException"

Author Message
JohnMontet
[View user's profile]

Joined: 2016-06-09
Posts: 5
I'm running a brand-new .NET installation using 5.7.7 and I'm receiving the following timeout error:

Quote:
System.TimeoutException: Timeout waiting for WinSCP to respond - WinSCP has not responded in time (response log file C:\Windows\TEMP\wscp1230.017D53CE.tmp was not created). This could indicate lack of write permissions to the log folder or problems starting WinSCP itself. at WinSCP.Session.CheckForTimeout(String additional) at WinSCP.Session.Open(SessionOptions sessionOptions)


I've ensured that the user has read/write permissions to the C:\Windows\TEMP\ folder.

I'm using code very similar to the VB.NET example (https://winscp.net/eng/docs/library#vbnet). The WinSCP.exe and WinSCPnet.dll files are located in the /Bin folder of the site.

Any suggestions as to what might be going on? Any help is greatly appreciated.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
In what environment are you running the code? Is it a desktop application, web application, or other?
_________________
Martin Prikryl
JohnMontet
[View user's profile]

Joined: 2016-06-09
Posts: 5
I'm running the code in a Web application.
JohnMontet
[View user's profile]

Joined: 2016-06-09
Posts: 5
Thank you for your response and attention, prikryl. You can all mark this as solved!

I was using Impersonation. I shut this off in the Web.config and made sure that the IIS Application Pool user had access to the site's root directory.

Like a charm, my friends, like a charm.

Cheers!

Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for your feedback.

Did you really had to do both? Or what was the primary cause of the problem?
JohnMontet
[View user's profile]

Joined: 2016-06-09
Posts: 5
I actually had to do both. The application user had to have "Write" privileges for log files to be written. (I couldn't figure out how to shut off logging in the current version.)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
OK. What did you do first? Did you try to run the code between the two changes? Did an error message change after the first change?
JohnMontet
[View user's profile]

Joined: 2016-06-09
Posts: 5
Yes. The error I first listed above vanished after I turned off Impersonation.

At that point, the application threw a file stream accessibility issue. Ensuring that the application user had write credentials to the log file location fixed that one.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks.

I've added that to:
https://winscp.net/eng/docs/message_library_timeout_waiting_to_respond
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