Error when loading Word addin

Add-in Express™ Support Service
That's what is more important than anything else

Error when loading Word addin
Recently compiled addin msi cannot be loaded with error 
godfrey ho




Posts: 7
Joined: 2017-08-21
hi there,

We have been developing our word addin using ADX since Word 2010 and have upgraded to Word 2019 late last year. The addin can be deployed via manual double click msi or creating SCCM package to be deployed.

but since this week the addin cannot be loaded with error "Not loaded. A runtime error occurred during the loading of the COM Add-in." in COM Add-ins dialog box within Word - Options - Add-ins.

Checking adxloader.log gave me an error as follows:

21:31:03:904 7832 10416 Start.
21:31:03:904 7832 10416 Creating a new instance of the add-in loader.
21:31:03:904 7832 10416 Success.
21:31:03:904 7832 10416 Loading the configuration from the system registry.
21:31:03:905 7832 10416 Getting the latest CLR version.
21:31:03:906 7832 10416 The latest CLR version is 'v4.0.30319'.
21:31:03:906 7832 10416 The configuration has been loaded successfully.
21:31:03:906 7832 10416     Runtime version: v4.0.30319.
21:31:03:906 7832 10416     Assembly name: Word at Allens.
21:31:03:906 7832 10416     Class name: WordatAllens.AddinModule.
21:31:03:906 7832 10416     Registry key: CLSID{9A91686E-1364-4BF8-8DD3-69D44A1A730D}.
21:31:03:906 7832 10416 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
21:31:03:906 7832 10416 The loader manifest is not trusted.
21:31:03:906 7832 10416 Hash verification failed


Also checking the adxregistrator.log also gave me an error:

Add-in Express Registrator Log File: 05/07/2019 20:48:13

Installation directory: C:Program FilesWord add ins
Registrator version: 8.7.4425.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 17134), 64-bit
Process Owner: User
Command Line: "C:Program FilesWord add insdxregistrator.exe" /install="Word at Allens.dll" /privileges=admin /generateLogFile=true
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
20:48:13 0644 Starting the add-in registration process.
20:48:13 0644 Loading mscoree.dll
20:48:13 0644 Success.
20:48:13 0644 .NET Framework installation directory: 
20:48:13 0644 The latest version of .NET Framework: 'v4.0.30319'
20:48:13 0644 Loading CLR: v4.0.30319.
20:48:13 0644 Calling CLRCreateInstance method.
20:48:13 0644 Success.
20:48:13 0644 Calling GetRuntime method.
20:48:13 0644 Success.
20:48:13 0644 Checking if the hosting API of .NET Framework v4.0 beta is installed.
20:48:13 0644 The hosting API is up to date.
20:48:13 0644 Calling GetInterface method for the CorRuntimeHost interface.
20:48:13 0644 Success.
20:48:13 0644 Starting CLR...
20:48:13 0644 Success.
20:48:13 0644 Getting the CLR version.
20:48:13 0644 The CLR v4.0.30319 has been initialized successfully.
20:48:13 0644 Creating a new domain setup.
20:48:13 0644 Success.
20:48:13 0644 Getting the add-in directory.
20:48:13 0644 Success. The directory is 'C:Program FilesWord add ins'
20:48:13 0644 The 'shadow copy' is disabled.
20:48:13 0644 Creating a new application domain.
20:48:13 0644 Success.
20:48:13 0644 Getting the base directory for the domain.
20:48:13 0644 Success. The directory is 'C:Program FilesWord add ins'.
20:48:13 0644 Searching for the Add-in Express core library.
20:48:13 0644 Success. The 'AddinExpress.MSO.2005.dll' file is found.
20:48:13 0644 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
20:48:13 0644 Assembly identity is 'AddinExpress.MSO.2005'.
20:48:13 0644 Success.
20:48:13 0644 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
20:48:13 0644 Success.
20:48:13 0644 Calling the managed registration procedure (DISPID = 1610743823).
20:48:14 0644 Managed Error: 
Date and Time:         7/05/2019 8:48:14 PM
Machine Name:          SDR10SZIM2
IP Address:            fe80::8066:9a4d:ef60:1462%3
Current User:          AAR	u23s

Application Domain:    C:Program FilesWord add ins
Assembly Codebase:     file:///C:/Program Files/Word add ins/AddinExpress.MSO.2005.DLL
Assembly Full Name:    AddinExpress.MSO.2005, Version=8.7.4425.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      8.7.4425.0

Exception Source:      AddinExpress.MSO.2005
Exception Type:        System.ComponentModel.Win32Exception
Exception Message:     Access is denied
Exception Target Site: CreateSubKey

---- Stack Trace ----
   AddinExpress.Projects.Common.ADXRegistryKey.CreateSubKey(subKeyName As String)
       AddinExpress.MSO.2005.DLL: N 0133 (0x85) IL 
   AddinExpress.Projects.Common.Utilities.RegisterManagedType(rootKey As ADXRegistryKey, type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
       AddinExpress.MSO.2005.DLL: N 0082 (0x52) IL 
   AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
       AddinExpress.MSO.2005.DLL: N 0206 (0xCE) IL 
   AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
       AddinExpress.MSO.2005.DLL: N 0040 (0x28) IL 
   AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
       AddinExpress.MSO.2005.DLL: N 0205 (0xCD) IL 
   AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
       AddinExpress.MSO.2005.DLL: N 0703 (0x2BF) IL 



20:48:14 0644 The add-in registration process is completed with HRESULT = -2147467259.


trying to revert to the previous version of the addin sourcecode and re-compile it still gave me these errors. so like to ask for your opinion on what I can do to fix it.

FYI We have been using version 8.7.4425.0 with Visual Studio 2010 10.0.30319.1. our machines SOE is Windows 10 Enterprise(build 17134), 64-bit.

regards,
Godfrey.
Posted 07 May, 2019 06:54:54 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Godfrey,

godfrey ho writes:
Checking adxloader.log gave me an error as follows:


Check https://www.add-in-express.com/forum/read.php?FID=5&TID=14613.

godfrey ho writes:
Also checking the adxregistrator.log also gave me an error:


You pass adxregistrator.exe ... /privileges=admin while the user running the installer is not an admin. To raise a warning when a user (not an admin) runs such an installer you should check that your add-in and setup project follow instruction given in section Deploying a per-machine Office extension via an MSI installer, see the PDF file in the folder {Add-in Express}\Docs on your development PC.

godfrey ho writes:
The addin can be deployed via manual double click msi


This contradicts to using adxregistrator.exe ... /privileges=admin. You should decide whether you deploy a per-machine or per-user add-in. Note that a per-machine add-in should be installed by starting setup.exe, not by double-clicking the .MSI.

godfrey ho writes:
FYI We have been using version 8.7.4425.0


Make sure all Add-in Express files that you use have this version on them.


Andrei Smolin
Add-in Express Team Leader
Posted 08 May, 2019 04:35:59 Top