Я могу загрузить файл без каких-либо проблем с FTP, но не могу загрузить файл с локального FTP-сервера. Я изменил его на черные и слабые стороны по пути адреса, но по-прежнему имеют ту же ошибку.Ошибка загрузки ftp: «Формат данного пути не поддерживается».
string _ftpURL = @"192.168.0.134";
string _UserName = "root"; //User Name of the SFTP server
string _Password = "porter"; //Password of the SFTP server
int _Port = 2222; //Port No of the SFTP server (if any)
string _ftpDirectory = "/home/root/systools/WM"; //The directory in SFTP server where the files will be uploaded
string LocalDirectory = " E:\\charan\\final test\\WebMobility.db"; //Local directory from where the files will be uploaded
Sftp Connection = new Sftp(_ftpURL, _UserName, _Password);
Connection.Connect(_Port);
**Connection.Put(LocalDirectory, _ftpDirectory);**
Connection.Close();
Спасибо fnupp, что была ошибкой ... –