Post a reply

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 in running dockerized .NET app that uses WinSCP

Please set Session.DebugLogPath and post the log.
stardust3dd

Error in running dockerized .NET app that uses WinSCP

I am trying to write a simple .NET console application that reads the list of files from a SFTP server. The app works fine on my local machine & shows me all files present on my SFP server. However, I need to containerize my .NET console app. When running the same app, containerized, this error shows up
Unhandled exception. WinSCP.SessionLocalException: WinSCP process terminated with exit code -1073741515 (C0000135). There was no output. Response log file C:\Windows\TEMP\wscp079C.011C7A8C.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.

   at WinSCP.Session.Open(SessionOptions sessionOptions)
   at PullSFTP.Program.Main(String[] args) in C:\Program.cs:line 39
   at PullSFTP.Program.<Main>(String[] args)


I need to understand the error. I am unable to find more information about this error code, and whether I am getting this because WinSCP fails to start, or because of the lack of write permissions. Please help me understand the problem in detail.