accessing FTP Server

G

Guest

hi, ive tried two ways of accessing an FTP server and neither worked. both
threw an error saying "User Not Logged In"....so i have no idea how to do
this....heres the code

My.Computer.Network.UploadFile("FileName", "ftp://name.MyServer.net",
"UserName", "Password")

and

Dim c As New Net.NetworkCredential
Dim snd As Net.FtpWebRequest

c.UserName = Me.txtUser.Text
c.Password = Me.mtxtPass.Text

For Each obj As Object In Me.lstAddedFiles.Items

Dim tmp As String = obj.ToString
Dim state As New FtpState

snd = WebRequest.Create(New Uri(Me.txtWebSite.Text.Trim & "/" &
tmp.Substring(tmp.LastIndexOf("\") + 1)))

snd.Credentials = c
snd.UseBinary = True
snd.Method = Net.WebRequestMethods.Ftp.UploadFile

state.FileName = obj.ToString()
state.snd = snd

snd.BeginGetRequestStream(AddressOf FtpFileUploadCallBack, state)

Next

any help would be great
 
T

Terry Olsen

Usually "User not logged in" means that the credentials you sent were not
correct. Try logging in to the ftp server manually and see if you are able
to authenticate with the ID & Password you are sending.
 
M

Marcos de Lima Carlos

iwdu15 escreveu:
my login information is correct and it still says this....


Do you usually access esss TP through IE or another client?

Marcos
 
G

Guest

nah, i always use Firefox.....safer and better.....but why does this matter?
this website isnt one thats required to be used in IE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top