WinSCP.SessionRemoteException: Credentials were not specified --- with invalid credentials
Hi, I'm building a .Net Core console app using the NuGet WinSCP package, version 6.3.4.
When connecting to an FTPS server with bad credentials, I get this exception:
I was expecting an 'authorization failed' or 'invalid credentials' exception?
I proved the credentials are there by purposely changing the correct password by adding an invalid character to the correct password, getting the above exception, then removing the one extra character, and then connecting.
This is on Windows Server 2022, Visual Studio 2022.
Thanks.
When connecting to an FTPS server with bad credentials, I get this exception:
WinSCP.SessionRemoteException: Credentials were not specified. at WinSCP.SessionLogReader.Read(LogReadFlags flags) at WinSCP.ElementLogReader.Read(LogReadFlags flags) at WinSCP.SessionElementLogReader.Read(LogReadFlags flags) at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags) at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags) at WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags) at WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader() at WinSCP.Session.WaitForGroup() at WinSCP.Session.Open(SessionOptions sessionOptions)
I proved the credentials are there by purposely changing the correct password by adding an invalid character to the correct password, getting the above exception, then removing the one extra character, and then connecting.
This is on Windows Server 2022, Visual Studio 2022.
Thanks.