On the newer computer, did you also register the AFWrapper assembly using RegAsm.exe?
Register it with:
regasm "%PIHOME%\ProcBook\AFWrapper.dll" /tlb
thanks for the quick answer.
Yes, I've registered it using the C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe.
I've also tried with (and without) "/codebase" option.
1 of 1 people found this helpful
I can't duplicate your issue on my Windows 10 computers. Here are the steps I performed:
- Copied the AFWrapper.dll and .tlb files to %PIHOME%\ProcBook.
- Tried running the WrapperExample.PDI to receive the "Run-time error '429' ActiveX component can't create object" error message, which was to be expected.
- Open Command Prompt aka CMD window BUT I right-clicked on the icon and chose to "Run as administrator".
- From the C:\WINDOWS\system32> prompt, I changed directories: cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
- From the C:\Windows\Microsoft.NET\Framework\v4.0.30319> prompt, I ran: regasm /codebase "%PIHOME%\ProcBook\AFWrapper.dll" /tlb
- I read, and then ignored, these ugly messages:
Microsoft .NET Framework Assembly Registration Utility version 188.8.131.52
for Microsoft .NET Framework version 184.108.40.206
Copyright (C) Microsoft Corporation. All rights reserved.
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
Types registered successfully
Assembly exported to 'C:\Program Files (x86)\PIPC\ProcBook\AFWrapper.tlb', and the type library was registered successfully
7. Finally, I opened WrapperExample.PDI once again and everything worked fine.
Past experience with RegAsm makes me want to unregister an assembly before re-registering it. Since this was my first time to register the assembly on this host, that precaution was not needed. However, that command would look something like:
regasm /unregister "%PIHOME%\ProcBook\AFWrapper.dll"
But again that would be in a CMD window that I opened with "Run as administrator".
Hope this helps,