Znači imam ftp server, i trebam preko visual basic-a uploadat npr "test.txt". Koristim sljedeći kod:
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://mojftpserver/test.txt"), System.Net.FtpWebRequest)
request.Credentials = New System.Net.NetworkCredential("username", "pasword")
request.Method = System.Net.WebRequestMethods.Ftp.UploadFile
Dim file() As Byte = System.IO.File.ReadAllBytes("d:\test.txt")
Dim strz As System.IO.Stream = request.GetRequestStream()
strz.Write(file, 0, file.Length)
strz.Close()
strz.Dispose()
Ali dobim ovu grešku: "The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."
(Pogledaj sliku). Što sam krivo napravio? molim pomoć, hitno je...
Hvala