Cannot initialize external console

If you are getting the error with WinSCP .NET assembly and the error details are like “Request event – System Error. Code: 5. – Access is denied”, the error indicates that the .NET assembly cannot communicate with WinSCP executable. This usually happens, when the .NET assembly is used within a restricted environment like IIS Web Service as the assembly and the process are using different local accounts.

Use the Session.ExecutableProcessUserName and the Session.ExecutableProcessPassword to configure the local account to use for the WinSCP process.


Though in general, WinSCP .NET assembly is not the right tool to be used for web development.

Last modified: by martin