Re: Error code 40426 - WeOnlyDo Discussion board

Re: Error code 40426 (General questions)

by goondoo27, Tuesday, June 07, 2005, 22:36 (6920 days ago) @ wodSupport

Great News! It looks like we've finally licked the problem. I've seen the 10060 error on several systems and the control recovers from it everytime. The fix was to rebuild a new instance of the control everytime I use it. When the FTP timer hits, the first thing the code does is go through this code:

Private Sub ProvisionFTP()
On Error Resume Next

'Start from a known state
Set ftpX = Nothing

'Create the ftp component
Set ftpX = New wodFtpDLXCom

'We Only Do Components: FTP Control
ftpX.Authentication = authPassword
ftpX.Blocking = False
ftpX.DirFormat = fmtAuto
ftpX.Passive = True
ftpX.Protocol = wodFtpDLXComLib.ProtocolsEnum.FTP
ftpX.TransferMode = Binary
ftpX.StrictHost = False
ftpX.LicenseKey = youdidntthinkidputthisinhere
End Sub


This clears out the old instance and builds a new one just before the ftpX.Connect method is hit. It works great! Thanks for all of the suggestions and assistance.

John


Complete thread: