|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
accessing FTP Serverthrew 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 -- -iwdu15 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. Show quoteHide quote "iwdu15" <jmmgoalsteratyahoodotcom> wrote in message news:CD0F88ED-2299-4B95-ADD2-C877BC93F47F@microsoft.com... > 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 > -- > -iwdu15 iwdu15 escreveu:
> my login information is correct and it still says this.... Do you usually access esss TP through IE or another client?Marcos Marcos de Lima Carlos escreveu:
> iwdu15 escreveu: Sorry the correct question is this:>> my login information is correct and it still says this.... > > Show quoteHide quote > Do you usually access this FTP through IE or another program? > > Marcos nah, i always use Firefox.....safer and better.....but why does this matter?
this website isnt one thats required to be used in IE -- -iwdu15
Missing operand
How can I use a dll with several programs? vb2005 and ce net 4.2 What exactly does this message mean? Setting Regisrty Permission convert function from VB.6 to VB.NET API found in C# but not VB? Sending emails from app vb.net aggregation question How to find out current Screen resolution? |
|||||||||||||||||||||||