Results 1 to 4 of 4

Thread: Winsock - Wrong protocol error

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    When I try downloading a file with winsock, I get the following error: "Wrong protocol or connection state for the request transaction or request".

    After reading many threads on the forums, I've learned that this is mainly caused by the connection state that must be '7'.

    Actually, this is not my problem, as I am correctly connected to the ftp. On the same connection, I have been able to download a 90 bytes text file succesfully.

    The file I am trying to get is exactly 247kb and I am only receiving from 220k to 240k of the file each time I try it. This makes the file unusable.

    Any idea? Thanks.
    Chris

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    hi krass!

    can you e-mail me the original text file you're trying to download (this is the 247kb file, if it's possible) and the
    file that you've actually downloaded using your vb application (the 220 to 240kb file). i'll try to find where the problem is.

    most of the users who used the code posted on http://forums.vb-world.net/showthrea...threadid=28144 got a
    different problem... they are getting extra characters aside from the
    original file. this is because of the nBlockSize setting.
    icq: 16228887

  3. #3

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    Thanks for helping me out.

    The original 247k file I am talking about is actually a zip file. I just tried downloading it and reached 246k. I never reached or exceeded 247kb.

    You will find an email containing, as requested, the original zip file and the same file, not completed, of 220kb.

    I tried renaming both files to .txt and comparing all these ascii characters: at least it seems to be downloding the file correctly. It just won't finish it.

    Thanks again
    Chris

  4. #4

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    Did you receive my 2 files?

    ..Or do anyone else knows the solution for this?

    Thank you.
    Chris

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