Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: OLE Dispatch Exception Code
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 1:25 PM

I am getting the below message. I am able to connect to the ftp server and the state is 2 (connected). But when I try to issue the store command I get the message. All default for the object are default except for TimeOut which is set to 5000.

Any help would be appreciated!

OLE IDispatch exception code 0 from Dart.Tcp.1: The connection has been dropped because of a network failure or because the peer system failed to respond. Also caused when Connect, Send, Receive, Fill or Close methods are used with a Timeout parameter an
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted August 21, 2002 1:31 PM

Do you get the same error if you set the timeout higher?  Try it with the default value of 30000.
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 1:36 PM

I just tried it. It connects right away, and then takes about 15-20 seconds to come back with the same error.
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 1:41 PM

I have tried this on a FTP server, but on a local IP Address and it works fine. But when I try to connect to a server outside of my firewall, and I believe inside another, I get this problem. Is there a setting that I need to have the administrator change on the other end?
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted August 21, 2002 1:48 PM

Are you trying to do PASV or PORT. Are you able to do a List with the .List method? The problem is that the firewall(s) are letting you through on the control port (21) but when you try to make a data connection on the date port it doesn't work, which port depends on what the server or client picks, which depends on if you are doing PASV or PORT. If you can do a List, which uses the data connection, then that isn't the problem, if you can't then the problem is with your firewall configuration. Are you able to make a connection with another FTP product? Thanks.
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 2:24 PM

Well, I thing it's something that I'm doing now. I tried you're sample for visual foxpro and it works. However, with that sample I connect to their site, CWD to the directory that I need and then send the file. In my application, I do all this without user interaction. With the timeout set to greater than zero, I'm assuming that if I don't get an error then the function was successful. Is there anything, timing wise, that I need to be worried about if TimeOut is greater than zero?
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted August 21, 2002 3:10 PM

Did you run the sample with PASV turned on?
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 3:30 PM

I'm assuming by that you mean the Passive property. If that is true, then yes I am running it with PASV on. I also have it on in my application.
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted August 21, 2002 4:03 PM

By setting PASV to true that would allow you to get through your firewall because the client would be connecting to the server. With PORT (not passive) the server will initiate the connection on the data port to the client, and not get through the firewall. However, if our sample works with the remote server i would suggest trying to find the differences between the sample and your application. Have you noticed any?
jrowlins

From: Webster, NY USA
Posts: 6
Member Since: 08/21/02
posted August 21, 2002 4:46 PM

The only obvious difference is that in my application everything happens through code and no user input, where as the demo is one step at a time. I'm changing the application to have it move one step at a time with user intervention to see if that changes anything. But I've looked at the properties and everything is the same, and I don't change anything within code.
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted August 21, 2002 4:55 PM

What is the URL of the FTP server. I'll need a username and password as well. Thanks.

Also, you can send a copy of your project that doesn't work to support@dart.com attn: Jon Belanger and I'll take a look at it and give you some suggestions. Thanks.
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX