550 file unavailable error with FtpWebRequest class file upload. Works fine in FileZilla

前端 未结 4 637
借酒劲吻你
借酒劲吻你 2021-01-13 08:26

I\'m searched and found other questions on this but none have solved my issues. I\'m trying to upload a file via FTP using sample MSDN code. I get the The remote server retu

4条回答
  •  萌比男神i
    2021-01-13 09:21

    I had this problem just recently. It just popped on code that I had been using for years. It turned out that I had been working with a number of ftp sites and was sending the same files to all these ftp sites. Well, when I went to some ftp sites, I was left at root, but at others, i was immediately put on a subdirectory. Before this recent change I could use request stream and put the file directly on the subdirectly where I was put. As of last week I needed to fully qualify the path.

    Hope this helps someone.....

提交回复
热议问题