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: Error while using BeginInvoke asynchronous FTP (VB .NET 2003 + Secure FTP .NET)
stoogesbol

From: Edmonton, AB Canada
Posts: 7
Member Since: 10/25/03
posted October 25, 2003 12:08 PM

If i call a BeginInvoke and the event result on error, instead of passing the exception to EndInvoke event.Exception, the program displays a messagebox: "Unhandled Exception in User's Event Handler" / "Exception has been thrown by the target of an invocation"

Is there any way to work around this?

VB.NET 2003, Secure FTP .NET 1.0

Code below will reproduce this: (on design: add ftp1 and set server, user and password, also add richtextbox1)

Private Sub Ftp1_EndInvoke(ByVal sender As Object, ByVal e As Dart.PowerTCP.SecureFtp.InvokeEventArgs) Handles Ftp1.EndInvoke
    If e.Exception Is Nothing Then
      RichTextBox1.AppendText("Command issued " + e.Request)
      RichTextBox1.AppendText("Response received " + e.Response.ToString())
    Else
      RichTextBox1.AppendText(e.Exception.Message) ' this is never reached
    End If
  End Sub

  Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Ftp1.BeginInvoke(Dart.PowerTCP.SecureFtp.FtpCommand.Null, "BLA", Nothing) ' "BLA" = command that will result in error. Same behaviour for stuff such as "CWD BLABLA" and BLABLA dir dont exist
  End Sub
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 27, 2003 9:26 AM

This is something that has been fixed but has not been released yet. I'd like to send you a beta, however I have no record of anybody with your name or email address in our system.

If you want the beta, please email support@dart.com and request it. After they get you entered into the system I'll send somnething out to you.

stoogesbol

From: Edmonton, AB Canada
Posts: 7
Member Since: 10/25/03
posted October 27, 2003 10:50 AM

Thanks! Please send it to me: stooges@bol.com.br
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 27, 2003 11:09 AM

I can't send it until the sales department approves, so please make sure you contact them and provide all the info they need.
stoogesbol

From: Edmonton, AB Canada
Posts: 7
Member Since: 10/25/03
posted October 31, 2003 3:36 PM

Dear sir, I waited all week long for a contact by your sales staff and didn't get any (only an advertising email). Please tell me if they are going to, or not, or if theres anyway to work around this error. Or if theres a foreseeable release date of a newer version of the control. Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted October 31, 2003 3:49 PM

Sorry for the delay. I see in the history where you sent the initial message. We replied requesting more info but as of yet have received nothing back.

Please resend the info and tell me here after you sent it so I can check up on what's going on.

Send the info directly to David Harry (sales@dart.com)
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX