|
-
Jul 19th, 2000, 07:05 PM
#1
Thread Starter
Fanatic Member
I'am so screwed, i've been working on this project for a week and it seemed like it was working fine (on the machine that it was created) but once i sent it to the person that needed it, it won't work. It loads...but when an upload button is pressed...the program just skimms the uploading sequence and says that the upload is complete. It works just fine on my machine...but other ppl are having the same problem...it is an inet problem? or coding problem? or what?!?!?!
Someone please help, this is getting VERY frusterating.
Thank you,
D!m
PS. I'am including the all the needed controls in the setup.
-
Jul 19th, 2000, 11:26 PM
#2
Fanatic Member
Dim, you may need to post your code in order for others to take a look at it and try to figure out what's wrong.
All the best.
-
Jul 19th, 2000, 11:52 PM
#3
Addicted Member
Dim,
Why u r using Inet and not Winsock???
-
Jul 20th, 2000, 12:29 AM
#4
Thread Starter
Fanatic Member
I connect, and upload in the same sub using simple connecting and uploading syntax, i have a waiting system by using
While Inet1.StillExecuting
DoEvents
Wend
It can't be the code that is the problem...b/c then why would it work fine on one maching but not another...i think it has something to do with the way msinet.ocx installs itself from the setup file. I've tried everything...copying the ocx from my comp to another comp and rebooting after installation...it just doesn't like the uploading sequence...i know for a fact that it does connect to the ftp b/c the log says so...and if i select a REALY small file, it will upload it but we're talking bytes Anything bigger and it skips through the whole sub.
Does any one have any ideas?
Tiovital,
I didn't use winsock b/c i don't think it is that great with ftp transactions...if you think i can perform 5 simultaneous uploads to an ftp using winsock please show me some syntax for it.
Thank you,
D!m
-
Jul 20th, 2000, 12:37 AM
#5
Thread Starter
Fanatic Member
Crypt,
It seems to perform this way on all os's and works only on the machine that it was created on...I can't post the program but hope that you (or anyone else) can help me solve this problem.
What control would you ppl sugget for basic uploading to an ftp? I assumed inet would be best that's why i choose it and now i'm finding out that it has so restrictions...so is there a control out there that can perform uploading to an ftp and actually does it well.
Thank you,
D!m
-
Jul 20th, 2000, 12:48 AM
#6
Addicted Member
why should dim use winsock and not the Inet control Crypt, ?
Look At your Answer "...inet control won't work on windows 2000...I have had problems with the inet control on other machine when people are on a really slow net connection..."
Well I had try To work with Inet and i had a lot of problem with it too.
-
Jul 20th, 2000, 12:52 AM
#7
Thread Starter
Fanatic Member
Tiovital,
please post some source that you would use to upload to an ftp using winsock...thanx
-
Jul 20th, 2000, 02:28 AM
#8
Lively Member
the latest winsock uses 32-bit
YC Sim
Teenage Programmer
UIN 37903254
-
Jul 20th, 2000, 02:28 AM
#9
Tiovital, if you take a look at the protocol property for the winsock control, theres only TCP and UDP, no FTP
Sunny
-
Jul 20th, 2000, 03:03 AM
#10
Lively Member
ftp is File Transfer protocol but it use TCP/IP technology.
FTP is just a presentation mode in the OSI layer....should be...
YC Sim
Teenage Programmer
UIN 37903254
-
Jul 20th, 2000, 04:05 AM
#11
Thread Starter
Fanatic Member
alrighty...back to the problem
Does ANY ONE know of ANY ftp controls that are fairly good.
Thank you,
D!m
-
Jul 20th, 2000, 04:48 AM
#12
Does the target machine have the same version of the Internet Explorer as yours? If not try upgrading the target machine's ie
Also, I always use the winsock for ftp, here is a really nice example: http://www.vbip.com/winsock/winsock_ftp_client_01.asp
It has a few problems, like not downloading really small fiels over really fast connections but overall it works pretty good.
If you want i could send you a modified version of the classes wich traps the downloading problem for small files over fast connections.
Hope it helps
-
Jul 20th, 2000, 05:45 AM
#13
Thread Starter
Fanatic Member
thanx ppl, i'll take all that under consideration.
-
Jul 30th, 2000, 03:11 PM
#14
New Member
I recently stumbled across the same problem (it seems).
I can transfer files to my AOL ftp site using the inet control but only if i'm signed on with the same screen name. If I sign on using another screen name the transfer fails without envoking the error event (state 11). I'm still working on the problem, but it has something to do with the username (anonymous) and the password (email address). I'll let you know if I solve this one.
-
Jul 30th, 2000, 06:18 PM
#15
Lively Member
One of my applications required FTP. I started off with Inet control and ended up with various problems. Have to say it's not user friendly. It doesn't even provide much info when the process failed.
I'm now using the socket tools at http://www.catalyst.com. They have 2 products, SocketTools which has various tools and you have to pay for it, and SocketWrench which is free. I'd say the socket control that comes with the free package is sufficient for simple FTP process. The have examples to show you how to do it. FYI, I've tried the FTP control that comes with the SocketTools package, and has problems.
Note: I don't work for them. I'm just a happy user.
-
Jul 30th, 2000, 06:37 PM
#16
New Member
Okay, fixed my bug.
The following code will allow me to tranfer files to my
site on AOL from any isp. I tried transfering files without the CD commands (ie. "ftp://isp.com/user/incoming")
however the inet control would have trouble locating the
directories. Paste to a form with an inet control on it.
Dim EmailName As String
Dim FileLoc As String
Dim FileFTP As String
Private Sub Form_Load()
EmailName = "[email protected]" 'any email should work
FileLoc = "c:\anyDIR\anyFILE.ext"
FileFTP = "anyNAME.ftp"
End Sub
Private Sub Command1_Click()
With Inet1
.URL = "ftp://isp.com" 'isp initial directory
.UserName = "anonymous"
.Password = EmailName
.AccessType = icDirect 'user is aready online
.protocol = icFTP
.RequestTimeout = 10
'change from isp initial dir to owner's main dir
.Execute , "cd owner'sDIR"
Do While .StillExecuting
DoEvents
Loop
'change from main to owner's incoming dir required for AOL
.Execute , "cd incoming"
Do While .StillExecuting
DoEvents
Loop
'transfer file to web
.Execute , "send " & FileLoc & " " & FileFTP
Do While .StillExecuting
DoEvents
Loop
.Execute , "close"
End With
End Sub
Hope you see something here that will help. I just started programming in VB and don't really understand the inet
control that well.
-
Jul 31st, 2000, 02:33 AM
#17
Thread Starter
Fanatic Member
Thanx...but i decided to go with mabry controls instead of inet.
Laterz,
D!m
-
Aug 16th, 2000, 02:36 PM
#18
Lively Member
No sure if you still need this info but what I found with using the vb6 inet controls is you have to convert all names into short names or it won't work. I have had many times that the control does not even report an error, and you think everything is just dandy till you relise the file/data you are sending is not really at the destination.
So you might be compiling and testing in a directory with a file called c:\whatever\myfile.txt but when you put it in production your might be sending something like
c:\program files\wahtever\myfile.txt
You can't that space. There is code here somewhere that shows the API to get the "short name" ..
just an idea to check on.
-
Aug 16th, 2000, 07:41 PM
#19
Originally posted by hozo
c:\program files\wahtever\myfile.txt
You can't that space.
You can work with spaces you just need to suround it with quotes.
For example:
Put "C:\Program Files\MyDir\MyFile.TXT" "\Upload Directory\MyFile.TXT"
Code:
Inet1.Execute sURL, "Put ""C:\Program Files\MyDir\MyFile.TXT"" ""\Upload Directory\MyFile.TXT"""
-
Aug 16th, 2000, 08:33 PM
#20
Thread Starter
Fanatic Member
Thanx guys...that's pretty interesting and i'll keep it in mind for upcomming projects.
Laterz,
D!m
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|