Occurs when
an ActiveX COM file has been registered incorrectly.
Registration
was done with Regasm
Run-time
error '-2147024894 (80070002)':
automation
error
The system
can not find the specified file
Run-time error '-2147024894 (80070002)':
automation
error
The system can not find the specified file
|
Subsequently
the development remains in the VBA code
However,
the reference to the .tlb is set correctly, whereby all internal interfaces are
somehow visible
The
registration of the COM component took place here with a small Bat
Solution:
When
registering with Regasm, the file must be named in quotes and if the file is
signed, then be registered with / codebase as a parameter
Example of
the registration code in the Register.bat
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe
"C:\Office_Email_Send3.dll" /tlb /codebase
pause
|
The
registry file must be run as an administrator
When
installing, the success message appears
C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe
"C:\_Daten\Desktop\Access\Email_Test3\Office_Email_Send3.dll" /tlb
/codebase
Microsoft .NET Framework Assembly Registration
Utility 4.7.2556.0
für Microsoft
.NET Framework, Version 4.7.2556.0
Copyright (C)
Microsoft Corporation. Alle Rechte vorbehalten.
RegAsm :
warning RA0000 : Wenn Sie eine nicht signierte Assembly mit der Option
"/codebase" registrieren, beeinträchtigt die Assembly
möglicherweise andere auf dem Computer installierte Anwendungen. Die Option
"/codebase" sollte nur mit signierten Assemblys verwendet werden.
Geben Sie der Assembly einen starken Namen, und registrieren Sie sie erneut.
Die Typen wurden registriert.
Die Assembly wurde nach "C:\_Daten\Desktop\Access\..\Email_Test3\Office_Email_Send3.tlb"
exportiert, und die Typbibliothek wurde registriert.
C:\Windows\system32>pause
Drücken Sie
eine beliebige Taste . . .
|