| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Error 522 You have to Turn on secure data connection |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 4:04 AM Can someone help, Im probably being dense, but I can connected to an ftp but when I try to get a list I get the error above, this is using the listview demo project in vb.net Thanks for any help Regards |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 16, 2005 8:58 AM First make sure you are connected by issuing a simple command like: Ftp1.Invoke(FtpCommand.Noop,"") Try sending the following commands: Ftp1.Invoke(FtpCommand.Null, "PBSZ 0") Ftp1.Invoke(FtpCommand.Null, "PROT P") After that your Lists should work. |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 11:22 AM Hi Thanks for that all works fine now, was doing my headin. Just one question, well 2 really When using the following code to get a dir list the list hangs after a bit : Dim Files() As String = Ftp1.ExpandRemoteFiles("/*.*", True) Dim File As String For Each File In Files System.Diagnostics.Debug.WriteLine(File) Next Any Ideas and who it be possible with this component to create an asp.net / web service app that will run continually list a directory structure of an ftp server. Regards |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 16, 2005 11:25 AM Does it happen with every directory you list, or just certain directories? How many files and folders are there in the directory? Regarding your question about the Web service, I don't see any reason why you couldn't. |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 11:29 AM Its the same dir every time. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 16, 2005 11:30 AM How many files and folders are there in the directory? |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 11:32 AM Not sure coult be 10 could be 1000, basically I want to have a real time ftp monitor that once a base file is created of the full directory structure, the proccess keeps running and only adds the files that have been added. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 16, 2005 11:38 AM I'm trying to determine the problem you are having with the ExpandRemoteFiles method. Please tell me exactly how many files and directories are in the directory that causes the method to hang. Also, please tell me if you have found a directory where it works. |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 11:45 AM Hi The parent directory has approx 15 folders, and then the sub dir has 89 folders, its stops responding on the 54 sub dir. Is this Clear ? Regards |
| Potman From: Manchester, United Kingdom Posts: 6 Member Since: 05/15/05 |
posted May 16, 2005 11:46 AM O also even though the log window stopps at this file my connection still seems to be tranfering ! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 16, 2005 11:54 AM I'm sorry but I am unable to determine how to duplicate the problem that you are having. Please do the following: 1) Create a very simple VB6 app that demonstrates the problem you are having. Make sure all information regarding the FTP site (address, username, password) is in the code. 2) Zip the sample up and email it to support@dart.com 3) If you have a serial number for Secure FTP for .NET, make sure you include it in the email. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|