Using the below code to upload file to my FTP location but I am getting the below error.
I checked the FTP Location / username and password with FileZilla and everything is working fine and also I can able to create file manually in Filezilla. So there is no rights issue I believe.
The remote server returned an error: (550) File unavailable (e.g., file not found, no access)
Sub FTPFileUpload()
Dim sFTPSaveLoc As String, sLocalSysFilePath As String
sLocalSysFilePath = "D:/9100.txt"
sFTPSaveLoc = "ftp://MyFTPIPAddressHere/ftp/DB/9100.txt"
My.Computer.Network.UploadFile(sLocalSysFilePath, sFTPSaveLoc, "FTPUserIDHere", "FTPPasswordHere")
End Sub
Any suggestion will be highly helpful.