FtpWebRequest returns error 550 File unavailable

前端 未结 15 2291
醉梦人生
醉梦人生 2020-11-30 09:41

I have created a small windows forms application to upload the file to one of our client\'s ftp site. But the problem that I\'m having is that when I run this application on

15条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 10:07

    I had this problem. Filezilla was fine, .net wasn't. It was to a wordpress server. To get it working, I changed the my code from this:

    ftp://XXX.XXX.XXX.XXX//folder//" + txtFile.Text

    to:

    ftp://[FTPNAME]@XXX.XXX.XXX.XXX//" + txtFile.Text

    and it now thankfully works.

    I don't know if this is specific to Wordpress FTP folders.

提交回复
热议问题