| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Error in uploading file larger than 500Kb |
| lattis ep.luk@thenamaris.gr From: AThens, Greece Posts: 3 Member Since: 01/22/04 |
posted January 22, 2004 8:00 AM I have a program that uses the ftp for .net component to Dial-in to an ftp server (IIS) and send and receive files. When I send a small file to the ftp server everything works fine. When the file is over 500kb I get the error: Send failed at the socket level. The socket may have been closed abruptly or timed out. Any suggestions? Thanks Lucas |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 22, 2004 8:42 AM Does it happen for every transfer over 500kb? What do you have timeout set to? Have you tried increasing it? |
| lattis ep.luk@thenamaris.gr From: AThens, Greece Posts: 3 Member Since: 01/22/04 |
posted January 22, 2004 8:48 AM It happens for all transfers. I am not 100% sure its 500Kb because I have not tested it enough but if the files are small i.e. <10Kb it works fine As far as timeout is concerned I have not set anything so I guess there are default value?? Should I change them? and how? Thanks L. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 22, 2004 9:07 AM Timeout is a property of the FTP control. It's 30000 (30 secs) by default. Try increasing it to 90000 and see what happens. |
| lattis ep.luk@thenamaris.gr From: AThens, Greece Posts: 3 Member Since: 01/22/04 |
posted January 26, 2004 4:48 AM I installed the latest version of your component and increased the timeout. What happens now is that I get no error. It just freezes. I am using a dial-up connection (33.6bps). The trace shows that everythings works fine up to : <--- 150 Opening Binary Mode data connection for bla/bla/bla.zip it then freezes. There is no activity on the modem (Transfer led is not active). On the other side I use IIS (win2000). I get a file on the directory with 0 bytes which is locked. What am I doing wrong?? If I send small files < 5k it works fine! I am using the command: FtpSending.BeginPut(FileOperations.GetPath (LocalRootSending & strWild), FileOperations.GetFilename(LocalRootSending & strWild), RemoteRootSending, False, Nothing) and have a handle on endput to delete the local file Any suggestions?? Thanks Lucas |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 26, 2004 8:44 AM If you can get small files, I see no reason why you wouldn't get large ones. I think the only way we can help on this is if you get us access to the dial-up system so that we can run a few tests. If that's an option, please contact our support dept and provide whatever info we need to dial in. We can be reached at 315-790-5456 or support@dart.com |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|