I am trying to upload a file to an FTP server. The FTP server address is sftp://xxx.xx.xx.xx:xx
. When I try to make a FtpWebRequest
with it. It throws a NotSupportedException
that says:
The URI prefix is not recognized.
Code:
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("sftp://xxx.xx.xx.xx:xx");