Try
'Dim PathFile As String = "C:\WOMEN_FOUND\database"
'Create Request
Dim Request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create(Str_Url), System.Net.FtpWebRequest)
'Upload Properties
Request.Credentials = New System.Net.NetworkCredential(Str_Username, Str_Pwd)
Request.Method = System.Net.WebRequestMethods.Ftp.UploadFile
'Read File
Dim File() As Byte = System.IO.File.ReadAllBytes(Str_PathBase)
'Upload
Dim Strz As System.IO.Stream = Request.GetRequestStream() ' Error ตรงนี้ว่า The requested URI is invalid for this FTP command.
Strz.Write(File, 0, File.Length)
Strz.Close()
Strz.Dispose()
If System.IO.File.Exists(Str_PathBase) = True Then
System.IO.File.Delete(Str_PathBase)
End If
'MessageBox.Show("Upload Done", "Messsage")
Catch ex As Exception
MessageBox.Show(ex.Message, "Messsage")
End Try