Hi
Can anyone tell me what this might mean?
I have this in a SecureFTPConnection1_Uploaded event -
Dim sFile As String = IO.Path.ChangeExtension(e.LocalFile, MediaExt)
ftpConnection.BeginDeleteFile(sFile, New AsyncCallback(AddressOf OnRename), ftpConnection)
ftpConnection.BeginRenameFile(e.RemoteFile, sFile, New AsyncCallback(AddressOf OnRename), ftpConnection)
I see that the Private Sub OnRename(ByVal ar As IAsyncResult) event is being fired twice for each file processed by BeginRenameFile.
The first time it throws this exception but the second time it works.
Incompatible IAsyncResult object was returned by a call to the BeginRenameFile method
I can't see what is causing this exception or what it actually means. Any help appreciated.
cheers
malcom