Chilkat Email Components Home

ActiveX component can't create object.

Back

Question:
I get this error when trying to create an instance of an ActiveX FTP object in VBScript:

ActiveX component can't create object. 'ChilkatFtp2.ChilkatFtp2'

Answer:
The DLL needs to be registered using regsvr32.exe. The regsvr.exe program comes installed on every Windows computer. It is usually located in the Windows/System32 directory. From a DOS command prompt, type "regsvr32 DLL_FILENAME" where DLL_FILENAME is the name of the DLL to be registered. It is best to "cd" to the directory where the DLL is located. For Chilkat FTP2, the DLL is ChilkatFtp2.dll.

Note: ActiveX DLLs can be located anywhere. Once you register it with regsvr32.exe, do not move the DLL to another location. The DLL's location is saved in the computer's registry when it is registered. A common belief is that ActiveX DLLs need to reside in Windows/System32. This is not the case.

There is no source code associated with this article.