FTP - can't upload a file using the MS Example

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RichardC

    #16
    Re: FTP - can't upload a file using the MS Example

    Scorpion,

    I feel like FTP is the real sting in the tail. The site that I'm working
    with does require authentication, but obviously my work would not be happy
    with me just handing it out. The principal remains the same, though. So, I'd
    like to replicate the problem with a site we can both test with,
    ftp.microsoft.c om for example.

    I just downloaded the popular Indy application as well, and put in the MS
    ftp site and username anonymous and no password. It won't get around to
    transferring data, although I suspect the connection IS being formed (reading
    the messages sent back and forth seem to confirm this), once it gets to
    sending data, as in a directory listing, it says that it's taking too long
    for the server to respond. So I can't ACTUALLY verify that the connection is
    rock solid.

    Cheers, Richard

    Comment

    • scorpion53061

      #17
      Re: FTP - can't upload a file using the MS Example

      When I attempt to connect to the MS ftp site I also experience problems.

      When I attempt to connect to my FTP servers or other FTP servers I don't
      have a problem.

      I will keep working.


      "RichardC" <RichardC@discu ssions.microsof t.com> wrote in message
      news:95655431-CC38-4323-93C6-FF91FB18FEF7@mi crosoft.com:[color=blue]
      > Scorpion,
      >
      > I feel like FTP is the real sting in the tail. The site that I'm working
      >
      > with does require authentication, but obviously my work would not be happy
      >
      > with me just handing it out. The principal remains the same, though. So,
      > I'd
      > like to replicate the problem with a site we can both test with,
      > ftp.microsoft.c om for example.
      >
      > I just downloaded the popular Indy application as well, and put in the MS
      >
      > ftp site and username anonymous and no password. It won't get around to
      > transferring data, although I suspect the connection IS being formed
      > (reading
      > the messages sent back and forth seem to confirm this), once it gets to
      > sending data, as in a directory listing, it says that it's taking too long
      >
      > for the server to respond. So I can't ACTUALLY verify that the connection
      > is
      > rock solid.
      >
      > Cheers, Richard[/color]

      Comment

      • RichardC

        #18
        Re: FTP - can't upload a file using the MS Example

        I tried using the default Indy address - ftp.netscape.co m and same thing.
        Makes me want to throw the computer out of the 26th floor that I work on.

        The error was:
        "A connection attempt failed because the connected party did not properly
        respond after a period of time, or established connection failed because
        connected host has failed to respond".

        It's odd, because I can navigate my way using IE and I'm fairly surely now
        that the connection IS forming. It just refuses to send data (maybe something
        wrong with the data port usage). My connection definitely appears to be
        passive. I've chatted with the IT guy to see if I was lacking rights or if
        the firewall might be interfering, but he is fairly sure that isn't the
        problem.

        I do appreciate your help. Thanks again.

        Comment

        • HP

          #19
          RE: FTP - can't upload a file using the MS Example

          Richard,

          read ur posts, i m having exactly same problem. hv u found anything ?



          "RichardC" wrote:
          [color=blue]
          > Jen,
          >
          > Aargh! Here goes a 2nd time (MS just dropped my first reply).
          > I've had the same problem. By examing the error messages in the debugging
          > window when it got to the code sample you displayed (the create data socket
          > procedure), it seems to say either that the connection was actively refused
          > by target machine, or that it took too long to respond.
          >
          > Now I've tried this with 3 other FTP fites and the same error occurs, so
          > it's unlikely that the FTP servers are all renaming their servers in my case.
          > Is your problem fixed? If it wasn't the server being renamed, did you find
          > out what the problem was? I'd really appreciate your help, since this is
          > driving me crazy.
          >
          > Cheers, Richard
          >
          > PS! The Dim the Lights msg your own, or was that advertising blurb?
          >
          > "Jen" wrote:
          >[color=green]
          > > I'm using Microsoft's own VB.NET FTP Example:
          > >
          > > http://support.microsoft.com/default...b;en-us;832679
          > >
          > > I can get the program to create directories, change directories, etc.,
          > > but I can't get it to upload a file to the FTP server. I just get a
          > > "Cannot connect to remote server" error after this TRY:
          > >
          > > s = New Socket(AddressF amily.InterNetw ork, SocketType.Stre am,
          > > ProtocolType.Tc p)
          > > ep = New IPEndPoint(Dns. Resolve(ipAddre ss).AddressList (0),
          > > port)
          > >
          > > Try
          > > s.Connect(ep)
          > > Catch ex As Exception
          > > MessageString = m_sReply
          > > Throw New IOException("Ca nnot connect to remote server.")
          > >
          > > As I said, it'll do a directory list, create, change, and delete
          > > directories, but it will NOT transfer a file, and that's what I need
          > > it to do. I have the code set up properly for VS 2003, per the
          > > comments for the port calculations, and even tried it the VS 2002 way
          > > just to be sure that wasn;t the problem.
          > >
          > > I've also tried the Indy FTP client, but it won't even do a directory
          > > list (says the machine "actively refused" the connection).
          > >
          > > If someone could help I'd appreciate it.
          > >
          > >
          > > (please send all replies via the newsgroup)
          > >
          > > Dim the Lights & Save the Stars:
          > > http://www.darksky.org/
          > >[/color][/color]

          Comment

          Working...