Word Add-in does not load

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

Word Add-in does not load
 
Sean Ram




Posts: 27
Joined: 2013-03-13
We've been working with Add-in Express internally to create Addins for Excel/Word/PowerPoint. Recently, the Word Add-in stopped working. It wouldn't load into Word in my system.

I tried reinstalling the add-in cleanly. Checked adx logs but they had no entries when running Word. I tried running the add-in in the Debug mode and even then it didn't work. Also checked for missing/out-of-date libraries/DLLs.

Also seems like the addin entry isnt even present in Word's File -> Options -> Addins menu.

A little confused now, would appreciate some help.

Please let me know if any additional information is needed.
Posted 02 Apr, 2020 04:30:03 Top
Andrei Smolin


Add-in Express team


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

Please reinstall your add-in, start Word and check if you see any issue in these files:
- %temp%\{AssemblyProduct attribute; see AssemblyInfo}\adxregistrator.log in the profile of the user who runs the installer
- %temp%\{AssemblyProduct attribute; see AssemblyInfo}\adxloader.log in the profile of the user who starts Word


Andrei Smolin
Add-in Express Team Leader
Posted 02 Apr, 2020 05:37:21 Top
Sean Ram




Posts: 27
Joined: 2013-03-13
I got this from adxregistrator.log :


14:58:23 0520 Managed Error:
Date and Time: 31-03-2020 14:58:23
Machine Name: DESKTOP-GVGM97L
IP Address: fe80::e565:8aaf:1fe9:70b1%18
Current User: DESKTOP-GVGM97L\harim

Application Domain: c:\Program Files (x86)\DocIQ\
Assembly Codebase: file:///c:/Program Files (x86)/DocIQ/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=9.2.4635.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.2.4635.0

Exception Source: AddinExpress.MSO.2005
Exception Type: System.ApplicationException
Exception Message: The '' file doesn't exist in the application directory.
Exception Target Site: RegisterAssembly

---- Stack Trace ----
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.DLL: N 0505 (0x1F9) IL

Posted 03 Apr, 2020 03:31:33 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Posted 03 Apr, 2020 03:56:07 Top
Sean Ram




Posts: 27
Joined: 2013-03-13
Hey Andrei,

In both these links a common issue was insufficient privileges.

I checked the logs and noticed that privileges are elevated and add-in setup was run as administrator. Also I noticed that the logs don't really update when I re-install again. Unless I start PowerPoint or Excel (where the add-in works well).
Posted 03 Apr, 2020 07:13:16 Top
Sean Ram




Posts: 27
Joined: 2013-03-13

Add-in Express Registrator Log File: 04/03/2020 15:39:08

Installation directory: C:\Program Files (x86)\DocIQ\
Registrator version: 9.1.4620.0
Operating System: Microsoft Windows 10 (build 18362), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\DocIQ\adxregistrator.exe" /install=FC.OfficeHelper.AddIn.dll /privileges=admin /returnExitCode=false /log=adx.log
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
--------------------------------------------------------------
15:39:08 0544 Starting the add-in registration process.
15:39:08 0544 Loading mscoree.dll
15:39:08 0544 Success.
15:39:08 0544 .NET Framework installation directory:
15:39:08 0544 The latest version of .NET Framework: 'v4.0.30319'
15:39:08 0544 Loading CLR: v4.0.30319.
15:39:08 0544 Calling CLRCreateInstance method.
15:39:08 0544 Success.
15:39:08 0544 Calling GetRuntime method.
15:39:08 0544 Success.
15:39:08 0544 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:39:08 0544 The hosting API is up to date.
15:39:08 0544 Calling GetInterface method for the CorRuntimeHost interface.
15:39:08 0544 Success.
15:39:08 0544 Starting CLR...
15:39:08 0544 Success.
15:39:08 0544 Getting the CLR version.
15:39:08 0544 The CLR v4.0.30319 has been initialized successfully.
15:39:08 0544 Creating a new domain setup.
15:39:08 0544 Success.
15:39:08 0544 Getting the add-in directory.
15:39:08 0544 Success. The directory is 'C:\Program Files (x86)\DocIQ\'
15:39:08 0544 The 'shadow copy' is disabled.
15:39:08 0544 Creating a new application domain.
15:39:08 0544 Success.
15:39:08 0544 Getting the base directory for the domain.
15:39:08 0544 Success. The directory is 'C:\Program Files (x86)\DocIQ\'.
15:39:08 0544 Searching for the Add-in Express core library.
15:39:08 0544 Success. The 'AddinExpress.MSO.2005.dll' file is found.
15:39:08 0544 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:39:08 0544 Assembly identity is 'AddinExpress.MSO.2005'.
15:39:08 0544 Success.
15:39:08 0544 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:39:08 0544 Success.
15:39:08 0544 Calling the managed registration procedure (DISPID = 1610743823).
15:39:09 0544 Registration success.
15:39:09 0544 The add-in registration process is completed with HRESULT = 0
Posted 03 Apr, 2020 07:16:58 Top
Andrei Smolin


Add-in Express team


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

I should have said this: I assume the cause of the issue is an incorrect set of parameters passed to adxregistrator.exe.

In the Add-in Express manual - see the PDF file in the folder {Add-in Express}\Docs on your development PC - check one of these sections:
- Deploying a per-user Office extension via an MSI installer
- Deploying a per-machine Office extension via an MSI installer


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2020 07:18:25 Top
Sean Ram




Posts: 27
Joined: 2013-03-13
Hello again,

We follow the per-machine install deployment, and everything seems to be in order pertaining to the same:

"{src}\adxregistrator.exe /install=FC.OfficeHelper.AddIn.dll /privileges=admin /returnExitCode=false /log=adx.log"


EDIT: We use Inno Setup, eschewing the traditional setup project approach shown in PDF. Just a note.
Posted 03 Apr, 2020 09:16:12 Top
Andrei Smolin


Add-in Express team


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

I try to understand if the ApplicationException still occurs: the adxregistrqator.log above suggests that the issue is solved. Is this so or not? If not, please provide a complete adxregistrqator.log created right after you reinstall your add-in.

If this is solved and your Word add-in still doesn't load, check if starting Word right after your add-in is reinstalled gets adxloader.log updated.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2020 09:53:08 Top
Sean Ram




Posts: 27
Joined: 2013-03-13
I decided to do a clean reinstall and got rid of all old files to get fresh information.

After installation, I run Word, but the add-in doesn't startup or create any logs. There is no file created after that. Then I tried a PowerPoint file, which led to creation of adxloader.log.

The add-in works perfectly in PowerPoint as well as Excel. But just seems missing from Word.

Here's the adxloader.log:


Add-in Express Loader Log File: 04/03/2020 22:05:43:834

Startup directory: C:\Program Files (x86)\DocIQ\
Loader version: 9.2.4635.0
Operating System: Microsoft Windows 10 (build 18362), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Root\Office16\POWERPNT.EXE" "G:\My Files\Office files\New Microsoft PowerPoint Presentation.pptx" /ou ""
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
22:05:43:838 1948 13940 Start.
22:05:43:843 1948 13940 The minimum supported Office version is 12
22:05:43:844 1948 13940 The host's version is 16.0.12527.20278
22:05:43:844 1948 13940 Creating a new instance of the add-in loader.
22:05:43:844 1948 13940 Loading mscoree.dll
22:05:43:845 1948 13940 INFO: Assembly codebase - C:\Program Files (x86)\DocIQ\FC.OfficeHelper.AddIn.dll.
22:05:43:847 1948 13940 INFO: Assembly version - 19.1.0.42760.
22:05:43:847 1948 13940 Success.
22:05:43:847 1948 13940 Loading the configuration from the system registry.
22:05:43:848 1948 13940 Getting the latest CLR version.
22:05:43:851 1948 13940 The latest CLR version is 'v4.0.30319'.
22:05:43:851 1948 13940 The configuration has been loaded successfully.
22:05:43:851 1948 13940 Runtime version: v4.0.30319.
22:05:43:851 1948 13940 Assembly name: FC.OfficeHelper.AddIn, PublicKeyToken=6958A8953CD886B3.
22:05:43:851 1948 13940 Class name: FC_OfficeHelper_AddIn.AddinModule.
22:05:43:851 1948 13940 Registry key: CLSID\{7614664A-18AC-443A-A83F-E788E56257DC}.
22:05:43:852 1948 13940 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
22:05:43:852 1948 13940 Loading CLR: v4.0.30319.
22:05:43:852 1948 13940 Calling CLRCreateInstance method.
22:05:43:852 1948 13940 Success.
22:05:43:852 1948 13940 Calling GetRuntime method.
22:05:43:853 1948 13940 Success.
22:05:43:853 1948 13940 Checking if the hosting API of .NET Framework v4.0 beta is installed.
22:05:43:902 1948 13940 The hosting API is up to date.
22:05:43:902 1948 13940 Calling SetDefaultStartupFlags method.
22:05:43:902 1948 13940 Success.
22:05:43:903 1948 13940 Calling GetInterface method for the CorRuntimeHost interface.
22:05:43:903 1948 13940 Success.
22:05:43:903 1948 13940 Starting CLR...
22:05:43:903 1948 13940 Success.
22:05:43:903 1948 13940 Getting the CLR version.
22:05:43:903 1948 13940 The CLR v4.0.30319 has been initialized successfully.
22:05:43:903 1948 13940 Creating a new domain setup.
22:05:43:910 1948 13940 Success.
22:05:43:910 1948 13940 Getting the add-in directory.
22:05:43:910 1948 13940 Success. The directory is 'C:\Program Files (x86)\DocIQ\'
22:05:43:913 1948 13940 The configuration file is 'C:\Program Files (x86)\DocIQ\FC.OfficeHelper.AddIn.dll.config'
22:05:43:913 1948 13940 The 'shadow copy' is disabled.
22:05:43:913 1948 13940 Creating a new application domain.
22:05:43:925 1948 13940 Success.
22:05:43:925 1948 13940 Creating an instance of the managed class. Assembly identity: 'FC.OfficeHelper.AddIn, PublicKeyToken=6958A8953CD886B3'
22:05:44:819 1948 13940 Success.
22:05:44:819 1948 13940 Unwrapping the managed class.
22:05:44:833 1948 13940 Success.
22:05:44:834 1948 13940 Querying the add-in extensibility.
22:05:44:835 1948 13940 Success.
22:05:44:835 1948 13940 Querying the custom task panes.
22:05:44:835 1948 13940 Success.
22:05:44:835 1948 13940 Querying the ribbon extensibility.
22:05:44:835 1948 13940 Success.
22:05:44:835 1948 13940 Querying the form regions.
22:05:44:835 1948 13940 Success.
22:05:44:835 1948 13940 Querying the encryption provider.
22:05:44:835 1948 13940 The 'EncryptionProvider' interface is not supported.
22:05:44:836 1948 13940 Getting the dispid of the 'Dispose' method.
22:05:44:841 1948 13940 Success.
22:05:44:841 1948 13940 Getting the dispid of the 'InitializeLoaderService' method.
22:05:44:841 1948 13940 Success.
22:05:44:841 1948 13940 Invoking the 'InitializeLoaderService' method.
22:05:44:842 1948 13940 Success.
22:05:44:842 1948 13940 The instance of the managed add-in class has been created successfully.

Posted 03 Apr, 2020 12:12:26 Top