Solved

Internet transfer control

Posted on 1998-06-18
4
182 Views
Last Modified: 2010-05-03
I am trying to copy a file using the Internet transfer control and I keeping getting an error that the Anonymous user does not exist.  I am not trying to login as Anonymous.  Here is the code I am using and it looks ok to me.  I have the SP3.
Dim strSite As String
    Dim strFile As String
    Dim objFTP As Object
   
    Set objFTP = Me!axFTP.Object
   
   
    strSite = "FTP://ftp.207.154.236.216"
    strFile = "C:/usr/local/etc/httpd/sites/usaauctions/oshome/data/logs/cust.log"
   
    objFTP.AccessType = icUseDefault
    objFTP.Protocol = icFTP
    objFTP.URL = strSite
    objFTP.UserName = "Admin"
    objFTP.Password = "TEST"
   
    Text1.Text = objFTP.OpenURL
   
    objFTP.Execute strSite, "Get " & strFile & " C:\FTP\" & strFile

any help would be greatly appreciated.

0
Comment
Question by:lottk
4 Comments
 

Expert Comment

by:electrick
ID: 1463754
If the FTP site you supplied is correct, I can't open it either
0
 
LVL 2

Accepted Solution

by:
peterwest earned 100 total points
ID: 1463755
Hi there,

Just a couple of things that you may want to check:

1. The ftp address is malformed - your code says 'FTP://ftp.207.154.236.216' which isn't a valid ftp address - try 'ftp://207.154.236.216' instead.  Theoretically your code shouldn't even get as far as telling you that the anonymous user doesn't exist!!!

2. Is the remote system case sensetive or not??  If it is then check the capitalisation of the username and password.

I hope this helps - if you could step through the code to identify the line where the error occurs then this would maybe suggest some more ideas....

Pete

0
 
LVL 1

Expert Comment

by:hozempa
ID: 1463756
For an FTP address, you need not type 'ftp://'.  Just enter 207.154.236.216 (or 'ftp.207.154.236.216'which I doubt is correct).  That should clear up the address problem.  Good luck.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1463757
Bought This Question.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question