WinSCP process terminated with exit code -1073741515 (C0000135)
The .NET component is hosted on mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 containers and recently migrated to .NET 5 and is running on mcr.microsoft.com/dotnet/aspnet:5.0. the containers are hosted on AWS EKS windows nodes. the application is working locally when debugged using Visual Studio.System.Exception: Unable to connect FTP location , WinSCP.SessionLocalException: WinSCP process terminated with exit code -1073741515 (C0000135). There was no output. Response log file C:\Windows\Temp\wscp660C.001DC84D.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
Since it is an access denied issue, I ran container under USER ContainerAdministrator and also tried to provided explicit access using corresponding folders using
icacls
from docker file; still issue persist. pls note that component it self has access to write to temp folder but WinSCP.exe.
RUN c:\windows\system32\icacls "c:\app" /grant "everyone":(OI)(CI)F RUN c:\windows\system32\icacls "c:\windows\temp" /grant "everyone":(OI)(CI)F RUN c:\windows\system32\icacls "c:\app\jobapi\temp" /grant "everyone":(OI)(CI)F RUN c:\windows\system32\icacls "c:\app\jobapi\WinSCP.exe" /grant "everyone":(OI)(CI)F
Has any one encountered such an issue? kindly support.