here is the actual error:
Invalid URI: A port was expected because of there is a colon (':') present but the port could not be parsed
public void ftpfile(string ftpfilepath, string inputfilepath)
{
string ftphost = "zlinkexchange.com";
//here correct hostname or IP of the ftp server to be given
string ftpfullpath = "ftp://" + ftphost + ftpfilepath;
FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create(ftpfullpath);
ftp.Credentials = new NetworkCredential("zlinkexc", "pianos15979#");
//userid and password for the ftp server to given
ftp.KeepAlive = true;
ftp.UseBinary = true;
ftp.Method = WebRequestMethods.Ftp.UploadFile;
FileStream fs = File.OpenRead(inputfilepath);
byte[] buffer = new byte[fs.Length];
fs.Read(buffer, 0, buffer.Lengt ...
Go to the complete details ...