| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: ftp net force to launch event with a button |
| eperez eperez@enteragon.com From: col cuauhtemoc mexico df, Mexico Posts: 13 Member Since: 02/11/04 |
posted January 8, 2006 8:41 PM hi, i tryed call the method of ftp net object getdirectory for initialize a connection, put generate this a exception, but when i call my procedure for a button click work good, please helpme. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 8, 2006 10:26 PM What is the exception that you get? |
| eperez eperez@enteragon.com From: col cuauhtemoc mexico df, Mexico Posts: 13 Member Since: 02/11/04 |
posted January 9, 2006 12:13 PM in fact, the exception is what reinitialize infinitly the procedure, i attach a source code for this. Public Sub Procesar(ByVal pVerbose As Boolean) Select Case dscfgtran.Tables(0).Rows(0).Item("tipoconexion") Case 1 'FTP ccftp.Server = dscfgtran.Tables(0).Rows(0).Item("servidor") ccftp.ServerPort = CLng(dscfgtran.Tables(0).Rows(0).Item("puerto")) ccftp.Username = dscfgtran.Tables(0).Rows(0).Item("usuario") ccftp.Password = dscfgtran.Tables(0).Rows(0).Item("contrasena") ccftp.Timeout = CLng(dscfgtran.Tables(0).Rows(0).Item("timeout_seg") * 1000) ccftp.FileType = FileType.Ascii ccftp.Passive = IIf(dscfgtran.Tables(0).Rows(0).Item("pasive") = 0, False, True) ccftp.SynchronizingObject = Me Try mstrruta = ccftp.GetDirectory() 'in this line restarts indefinitly If ccftp.Connected Then 'enviar datos Catch ex as exception end try |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 9, 2006 12:23 PM You aren't checking ex.Message so I have no idea what the problems is. Please change your code so that it logs the error message. |
| eperez eperez@enteragon.com From: col cuauhtemoc mexico df, Mexico Posts: 13 Member Since: 02/11/04 |
posted January 9, 2006 1:52 PM the problem is what does'not passs for the exception, directly restart the procedere without pass for exception handled |
| eperez eperez@enteragon.com From: col cuauhtemoc mexico df, Mexico Posts: 13 Member Since: 02/11/04 |
posted January 9, 2006 1:56 PM this program is based in the example listview vbnet , exist another way of connect the ftp component. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 9, 2006 2:04 PM I'm sorry, but I am having a great deal of trouble understanding the problem you are trying to report. At this point I think you should contact support@dart.com to find out about alternate support options. |
| eperez eperez@enteragon.com From: col cuauhtemoc mexico df, Mexico Posts: 13 Member Since: 02/11/04 |
posted January 9, 2006 2:11 PM thanks, i need evaluate the library, the trial version have something to block the complete funtionality? i'll try contact another support form. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 9, 2006 2:17 PM No, there is nothing blocked in the trial version. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|