Subject: FTPS connection failed
Date: 2022-06-15 10:47:57
From: danies8
Source: ftps-connection-failed
----------------------------------------------------------------------
Hi,
I tried to connect to FTPS.
But get this error: ComponentPro.Net.TlsException: Connection was close
2.Using this code
private async Task Connect()
{
using (Ftp client = new Ftp())
{
//Set the licence Key
ComponentPro.Licensing.Common.LicenseManager.SetLicenseKey(FtpsLicenseKey);
//Connect to the FTP server.
if (FtpsPort == 21)
{
await client.ConnectAsync(FtpsServerName, FtpsPort, SslSecurityMode.Explicit);
}
else
{
client.Connect(FtpsServerName, FtpsPort, SslSecurityMode.Implicit);
}
// Authenticate.
await client.AuthenticateAsync(FtpsUserName, FtpsPassword);
}
}
----------------------------------------------------------------------
Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.
Back to ComponentPro Q&A Forum Index