Page 1 of 1

Cannot Create ActiveX Component: AccuAddress.AddrCode6

Posted: Fri Sep 06, 2013 7:47 am
by Eric
AddrCode = CreateObject("AccuAddress.AddrCode6")

If this produces the following error:

Code: Select all

Cannot Create ActiveX Component
You’ll need to know the path to the AccuAddress.dll and AccuAddress.tlb files. These would normally be in your project folder or the final production program folder.

Open the DOS Command window As An Administrator and run this command, where “DotNetFolderName” needs to be changed to the actual .Net Framework folder name, e.g., v2.0.50727, and “PathTo” needs to be the Folder Path where the AccuAddress.dll and AccuAddress.tlb reside.

DOS COMMAND:
C:\Windows\Microsoft.NET\Framework\DotNetFolderName\REGASM.EXE "PathTo\AccuAddress.dll" /tlb:AccuAddress.tlb

This will register these items successfully and fix the error you’re receiving.