so im trying to create an ftp object to download all files off of a server but at runtime an exception is thrown tith the following description:
System.TypeInitializationException: 'The type initializer for
'Limilabs.FTP.Client.TcpTextClient' threw an exception.'
ArgumentException: 'windows-1252' is not a supported encoding name.
For information on defining a custom encoding, see the documentation
for the Encoding.RegisterProvider method.
im creating the object and using it like this:
using (Ftp ftp = new Ftp()) {
ftp.Connect(url); // or ConnectSSL
if (Directory.Exists(RootDirectory + "\\Temp")) {
Directory.CreateDirectory(RootDirectory + "\\Temp");
}
RemoteSearchOptions options = new RemoteSearchOptions("*", true);
ftp.DownloadFiles(@"\fdata\pos\invoices", RootDirectory + "\\Temp", options);
ftp.Close();
}