Results 1 to 20 of 20

Thread: Inet URGENT!!!

  1. #1

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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.
    Dim

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Smile

    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.

  3. #3
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Dim,
    Why u r using Inet and not Winsock???

  4. #4

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  5. #5

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  6. #6
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    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.



  7. #7

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Tiovital,
    please post some source that you would use to upload to an ftp using winsock...thanx
    Dim

  8. #8
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    the latest winsock uses 32-bit
    YC Sim
    Teenage Programmer
    UIN 37903254



  9. #9
    Guest
    Tiovital, if you take a look at the protocol property for the winsock control, theres only TCP and UDP, no FTP

    Sunny

  10. #10
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    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



  11. #11

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    alrighty...back to the problem
    Does ANY ONE know of ANY ftp controls that are fairly good.

    Thank you,
    D!m
    Dim

  12. #12
    Guest
    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


  13. #13

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    thanx ppl, i'll take all that under consideration.
    Dim

  14. #14
    New Member
    Join Date
    Jul 2000
    Posts
    11
    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.
    Still Learning

  15. #15
    Lively Member
    Join Date
    Oct 1999
    Location
    Australia
    Posts
    115
    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.

  16. #16
    New Member
    Join Date
    Jul 2000
    Posts
    11
    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.
    Still Learning

  17. #17

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Thanx...but i decided to go with mabry controls instead of inet.

    Laterz,
    D!m
    Dim

  18. #18
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110

    Unhappy

    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.

  19. #19
    Guest
    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"""

  20. #20

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Thanx guys...that's pretty interesting and i'll keep it in mind for upcomming projects.

    Laterz,
    D!m
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width