FtpWebRequest returns error 550 File unavailable

前端 未结 15 2261
醉梦人生
醉梦人生 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:08

    It could be more simple.

    I facing similar issue and i tried all the suggested solution but no one work. I'm figure out in simple manner like this one : take a look

    Wrong code at my end

     Dim request As Net.FtpWebRequest = CType(FtpWebRequest.Create("ftp://xxx.xxx.xxx.xxx/files"), FtpWebRequest)
    

    Change it in this simple one :

     Dim request As Net.FtpWebRequest = CType(FtpWebRequest.Create("ftp://xxx.xxx.xxx.xxx/files/youfilename.ext"), FtpWebRequest)
    

    then procced with fill request and send to server :)

    That's all.

    Make sure that all permission on server work fine and u're using right credential.

提交回复
热议问题