Hi, I'm trying to upload a file to my webserver. File is not showing on server.
Can anyone help me out here?

This is the code I'm using:
.net Code:
  1. Private Sub btnSEND_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSEND.Click
  2.         Dim clsRequest As System.Net.FtpWebRequest
  3.         Try
  4.             clsRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.blahblah.co.za/test.txt"), System.Net.FtpWebRequest)
  5.             clsRequest.Credentials = New System.Net.NetworkCredential("MyUSERNAME", "MyPassword")
  6.             clsRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
  7.         Catch ex As Exception
  8.             MsgBox(ex.Message.ToString)
  9.         End Try
  10.  
  11.         ' read in file...
  12.         Dim bFile() As Byte = System.IO.File.ReadAllBytes(Application.StartupPath & "\test.txt")
  13.  
  14.         ' upload file...
  15.         Dim clsStream As System.IO.Stream = _
  16.             clsRequest.GetRequestStream()
  17.         Try
  18.             clsStream.Write(bFile, 0, bFile.Length)
  19.             clsStream.Close()
  20.             clsStream.Dispose()
  21.         Catch ex As Exception
  22.             MsgBox(ex.Message.ToString)
  23.         End Try
  24.         MsgBox("done")
  25.     End Sub