Hi,
1. I used this code and I got this exception:
ComponentPro.Net.TlsException: 'Connection was closed by the remote connection end.'
2. I work against server 2019 and is not working but with window 10 it works.
3. I used PackageReference Include="ComponentPro.Ftp" Version="7.2.238"
4. What do I need to do in order to fixed it?
Thanks.
private void Connect()
{
using (Ftp client = new Ftp())
{
//Set the licence Key
ComponentPro.Licensing.Common.LicenseManager.SetLicenseKey(FtpsLicenseKey);
//Connect to the FTPS server.
if (FtpsPort == 21)
{
client.Connect(FtpsServerName, FtpsPort, SslSecurityMode.Explicit);
}
else
{
client.Connect(FtpsServerName, FtpsPort, SslSecurityMode.Implicit);
}
// Authenticate.
client.Authenticate(FtpsUserName, FtpsPassword);
}
}
edited 11/16/2022 9:27:43 AM
asked 11/16/2022 9:05:57 AM