adxloader fails with "system cannot find the file specified"

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

adxloader fails with "system cannot find the file specified"
 
Subscribe
JMP25




Posts: 6
Joined: 2025-02-20
Dear Add-In Express team,

I have a per machine add-in for PowerPoint. One customer has an issue where the add-in is not loaded.
The package works fine on many machines including our development machines.
We are using an older version of add-in express but have not had any issue so far.

The customer is trying to install our add-in on Windows 11 multisession.
It registers fine, but adxloader fails with "The system cannot find the file specified."
I have checked and all our necessary files are installed.

Our add-in targets .Net framework 4.6.2. The customer confirmed that .Net Framework 4.8 is installed on the machine.

This is the adxloader log:

Add-in Express Loader Log File: 02/19/2025 16:06:07:410

Startup directory: C:\Program Files (x86)\myAddIn\myAddIn\
Loader version: 9.4.4644.0
Operating System: Microsoft Windows Server 2016 (build 22631), 64-bit
Process Owner: User
Command Line: "C:\Program Files\Microsoft Office\root\Office16\POWERPNT.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
16:06:07:411 9732 20940 Start.
16:06:07:411 9732 20940 The host's version is 16.0.17425.20236
16:06:07:411 9732 20940 Creating a new instance of the add-in loader.
16:06:07:411 9732 20940 Loading mscoree.dll
16:06:07:411 9732 20940 INFO: Assembly codebase - C:\Program Files (x86)\myAddIn\myAddIn\myAddIn.dll.
16:06:07:411 9732 20940 INFO: Assembly version - 2.21.10.0.
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Loading the configuration from the system registry.
16:06:07:412 9732 20940 Getting the latest CLR version.
16:06:07:412 9732 20940 The latest CLR version is 'v4.0.30319'.
16:06:07:412 9732 20940 The configuration has been loaded successfully.
16:06:07:412 9732 20940 Runtime version: v4.0.30319.
16:06:07:412 9732 20940 Assembly name: myAddIn, PublicKeyToken=XXX.
16:06:07:412 9732 20940 Class name: myAddIn.AddinModule.
16:06:07:412 9732 20940 Registry key: CLSID\{XXXXX}.
16:06:07:412 9732 20940 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
16:06:07:412 9732 20940 Loading CLR: v4.0.30319.
16:06:07:412 9732 20940 Calling CLRCreateInstance method.
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Calling GetRuntime method.
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:06:07:412 9732 20940 The hosting API is up to date.
16:06:07:412 9732 20940 Calling SetDefaultStartupFlags method.
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Calling GetInterface method for the CorRuntimeHost interface.
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Starting CLR...
16:06:07:412 9732 20940 Success.
16:06:07:412 9732 20940 Getting the CLR version.
16:06:07:412 9732 20940 The CLR v4.0.30319 has been initialized successfully.
16:06:07:489 9732 20940 Creating a new domain setup.
16:06:07:489 9732 20940 Success.
16:06:07:489 9732 20940 Getting the add-in directory.
16:06:07:489 9732 20940 Success. The directory is 'C:\Program Files (x86)\myAddIn\myAddIn\'
16:06:07:490 9732 20940 The 'shadow copy' is enabled.
16:06:07:490 9732 20940 Creating a new application domain.
16:06:07:490 9732 20940 Success.
16:06:07:490 9732 20940 Creating an instance of the managed class. Assembly identity: 'myAddIn, PublicKeyToken=XXX'
16:06:07:797 9732 20940 The system cannot find the file specified.
Posted 20 Feb, 2025 08:50:16 Top
Andrei Smolin


Add-in Express team


Posts: 19095
Joined: 2006-05-11
Hello,

Please ask the customer to send you adxregistrator.log created when they installed the add-in. Find the file in {admin profile}\{add-in name}\adxregistrator.log.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2025 16:19:34 Top
JMP25




Posts: 6
Joined: 2025-02-20
Hi Andrei,

this is the adxregistrator.log file. It looks like this is successful. The add-in is listed in PowerPoint in the inactive add-ins. So it seems to be there but fails to load...

Add-in Express Registrator Log File: 02/19/2025 07:15:32

Installation directory: C:\Windows\Installer\
Registrator version: 9.4.4644.0
Operating System: Microsoft Windows Server 2016 (build 22631), 64-bit
Process Owner: System
Command Line: "C:\Windows\Installer\MSIE0ED.tmp" /install="C:\Program Files (x86)\myAddIn\myAddIn\myAddIn.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: System
UAC (User Account Control): On
--------------------------------------------------------------
07:15:32 0552 Starting the add-in registration process.
07:15:32 0552 Loading mscoree.dll
07:15:32 0552 Success.
07:15:32 0552 .NET Framework installation directory:
07:15:32 0552 The latest version of .NET Framework: 'v4.0.30319'
07:15:32 0552 Loading CLR: v4.0.30319.
07:15:32 0552 Calling CLRCreateInstance method.
07:15:32 0552 Success.
07:15:32 0552 Calling GetRuntime method.
07:15:32 0552 Success.
07:15:32 0552 Checking if the hosting API of .NET Framework v4.0 beta is installed.
07:15:32 0552 The hosting API is up to date.
07:15:32 0552 Calling GetInterface method for the CorRuntimeHost interface.
07:15:32 0552 Success.
07:15:32 0552 Starting CLR...
07:15:32 0552 Success.
07:15:32 0552 Getting the CLR version.
07:15:32 0552 The CLR v4.0.30319 has been initialized successfully.
07:15:32 0552 Creating a new domain setup.
07:15:32 0552 Success.
07:15:32 0552 The 'shadow copy' is disabled.
07:15:32 0552 Creating a new application domain.
07:15:32 0552 Success.
07:15:32 0552 Getting the base directory for the domain.
07:15:32 0552 Success. The directory is 'C:\Program Files (x86)\myAddIn\myAddIn\'.
07:15:32 0552 Searching for the Add-in Express core library.
07:15:32 0552 Success. The 'AddinExpress.MSO.2005.dll' file is found.
07:15:32 0552 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
07:15:32 0552 Assembly identity is 'AddinExpress.MSO.2005'.
07:15:32 0552 Success.
07:15:32 0552 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
07:15:32 0552 Success.
07:15:32 0552 Calling the managed registration procedure (DISPID = 1610743823).
07:15:34 0552 Registration success.
07:15:34 0552 The add-in registration process is completed with HRESULT = 0.
Posted 20 Feb, 2025 16:48:09 Top
Andrei Smolin


Add-in Express team


Posts: 19095
Joined: 2006-05-11
Hello JMP,

JMP25 writes:
The package works fine on many machines including our development machines.


Make sure it works on a non-development machine.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Feb, 2025 11:49:06 Top
JMP25




Posts: 6
Joined: 2025-02-20
Hi Andrei,

the very same package is installed on > 100 non-development machines.

What file could be missing on the affected machine?

best regards,
JMP
Posted 21 Feb, 2025 12:01:50 Top
Andrei Smolin


Add-in Express team


Posts: 19095
Joined: 2006-05-11
Hello JMP,

JMP25 writes:
What file could be missing on the affected machine?


"Not found", not "missing". We suppose the AssemblyIdentity attribute specified in adxloader.dll.manifest is incorrect in some way.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Feb, 2025 12:13:15 Top
JMP25




Posts: 6
Joined: 2025-02-20
Hi Andrei,

just wanted to let you know that the customer has fixed this on their end.
Our MSI package was fine. I do not know the details of their configuration
or what they needed to do.

But from our end this is solved.

Thank you for your assistance,

kind regards,
JMP
Posted 26 Feb, 2025 08:15:34 Top
Andrei Smolin


Add-in Express team


Posts: 19095
Joined: 2006-05-11
Thank you for letting me know!

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Feb, 2025 08:44:34 Top