Archived Forum Post

Index of archived forum posts

Question:

ActiveX component can’t create object "Chilkat_9_5_0.Ftp2"

Jun 07 '16 at 09:36

Just installed FTP2 bundle – using ftp vb example –

Receiving “ActiveX component can’t create object "Chilkat_9_5_0.Ftp2"

Code 800A01AD

Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set outFile = fso.CreateTextFile("output.txt", True)

set ftp = CreateObject("Chilkat_9_5_0.Ftp2")

' Any string unlocks the component for the 1st 30-days. ' Chilkat 1-Developer Bundle success = ftp.UnlockComponent("Anything") If (success <> 1) Then outFile.WriteLine(ftp.LastErrorText) WScript.Quit End If


Answer

If your VBScript is 64-bit, then you need to download and register the 64-bit Chilkat ActiveX. (Both 32-bit and 64-bit Chilkat ActiveX's may coexist on the same system.)

See https://vrobert.fr/2011/10/cant-run-vbscript-with-32-bits-activex-on-windows-2008-64-bits/

Also see http://www.chilkatforum.com/questions/8233/create-32-bit-activex-object-on-64-bit-windows