ERROR: Unable to build custom action named 'adxregistrator.exe' because it references an object that has been removed from the project.

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

ERROR: Unable to build custom action named 'adxregistrator.exe' because it references an object that has been removed from the project.
ERROR: Unable to build custom action named 'adxregistrator.exe' because it references an object that has been removed from the project. 
TheNewCOMAddin Dev




Posts: 26
Joined: 2019-07-11
Hi,

I am working on a Outlook ADX Addin. I added a setup project for the same. When I try and build the release. The error I have is this. I looked at a new ADXAddin project and made sure all files it references are present.
I made sure the adxregistrator.exe is at the given location.

Can someone guide me on what am I missing out.


MyAddinOutlook -> Sign MyAddinOutlook.dll... Success
MyAddinOutlook -> Sign adxloader.dll.manifest... Success
------ Starting pre-build validation for project 'MyAddinOutlookSetup(2.0.0)' ------
WARNING: Unable to find dependency 'SYSTEM.NET.HTTP' (Signature='B03F5F7F11D50A3A' Version='1.5.0.0') of assembly 'System.Net.Http.Extensions.dll'
WARNING: Unable to find dependency 'NEWTONSOFT.JSON' (Signature='30AD4FE6B2A6AEED' Version='6.0.0.0') of assembly 'System.Net.Http.Formatting.dll'
------ Pre-build validation for project 'MyAddinOutlookSetup(2.0.0)' completed ------
2>------ Rebuild All started: Project: MyAddinOutlookSetup(2.0.0), Configuration: Release ------
Building file 'C:\VSTOAddins\MyAddinAddin\MyAddinAddin\MyAddinOutlookSetup\2.0.0\Release\MyAddinOutlookSetup(2.0.0).msi'...
ERROR: Unable to build custom action named 'adxregistrator.exe' because it references an object that has been removed from the project.
Build process cancelled
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Thanks,
-Jatin
Posted 10 Feb, 2020 05:51:22 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
Hello Jatin,

We've never been reported about such an issue. I suggest that you google for a solution. The page I've found may or may not relate to your case: https://stackoverflow.com/questions/22403650/could-not-load-file-or-assembly-system-net-http-formatting-or-one-of-its-depen. Your googling may be better than mine.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Feb, 2020 07:11:56 Top
TheNewCOMAddin Dev




Posts: 26
Joined: 2019-07-11
Any urgent help on this would be appreciated!
Posted 10 Feb, 2020 07:12:03 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
Hello Jatin,

Find my response above.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Feb, 2020 07:13:51 Top
TheNewCOMAddin Dev




Posts: 26
Joined: 2019-07-11
Hi Andrei,

We removed the adxregistrator.exe added it to application directory and then readded it to the custom actions .. post which the msi got generated ... however when we install the adding now it gives the following error in the log... any ideas on what this error points to ?

Add-in Express Registrator Log File: 02/11/2020 12:43:07

Installation directory: C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\
Registrator version: 9.4.4644.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 17134), 64-bit
Process Owner: Administrator
Command Line: "C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\adxregistrator.exe" /Install
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
12:43:07 0852 Starting the add-in registration process.
12:43:07 0852 Loading mscoree.dll
12:43:07 0852 Success.
12:43:07 0852 .NET Framework installation directory:
12:43:07 0852 The latest version of .NET Framework: 'v4.0.30319'
12:43:07 0852 Loading CLR: v4.0.30319.
12:43:07 0852 Calling CLRCreateInstance method.
12:43:07 0852 Success.
12:43:07 0852 Calling GetRuntime method.
12:43:07 0852 Success.
12:43:07 0852 Checking if the hosting API of .NET Framework v4.0 beta is installed.
12:43:07 0852 The hosting API is up to date.
12:43:07 0852 Calling GetInterface method for the CorRuntimeHost interface.
12:43:07 0852 Success.
12:43:07 0852 Starting CLR...
12:43:07 0852 Success.
12:43:07 0852 Getting the CLR version.
12:43:07 0852 The CLR v4.0.30319 has been initialized successfully.
12:43:07 0852 Creating a new domain setup.
12:43:07 0852 Success.
12:43:07 0852 Getting the add-in directory.
12:43:07 0852 Success. The directory is 'C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\'
12:43:07 0852 The 'shadow copy' is disabled.
12:43:07 0852 Creating a new application domain.
12:43:07 0852 Success.
12:43:07 0852 Getting the base directory for the domain.
12:43:07 0852 Success. The directory is 'C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\'.
12:43:07 0852 Searching for the Add-in Express core library.
12:43:07 0852 Success. The 'AddinExpress.MSO.2005.dll' file is found.
12:43:07 0852 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
12:43:07 0852 Assembly identity is 'AddinExpress.MSO.2005'.
12:43:07 0852 Success.
12:43:07 0852 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
12:43:07 0852 Success.
12:43:07 0852 Calling the managed registration procedure (DISPID = 1610743823).
12:43:07 0852 Managed Error:
Date and Time: 2/11/2020 12:43:07 PM
Machine Name: GOL013741
IP Address: fe80::4111:f1c4:6f0e:9407%5
Current User: PERSISTENT\test_user

Application Domain: C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\
Assembly Codebase: file:///C:/Users/test_user/AppData/Local/MyAddin/MyAddin For Outlook/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=9.4.4644.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.4.4644.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 0550 (0x226) IL



12:43:07 0852 The add-in registration process is completed with HRESULT = -2147467259.
Posted 11 Feb, 2020 01:52:31 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
Hello Jatin,

It looks like you pass wrong parameters to adxregistrator.exe. Find correct parameters in the Add-in Express manual. If this doesn;t help, provide the complete adxregistrator.log.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Feb, 2020 02:07:12 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
TheNewCOMAddin Dev writes:
Command Line: "C:\Users\test_user\AppData\Local\MyAddin\MyAddin For Outlook\adxregistrator.exe" /Install


Well, this confirms the diagnosis.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Feb, 2020 02:08:34 Top
TheNewCOMAddin Dev




Posts: 26
Joined: 2019-07-11
Hi Andrie,

Thanks for the help. Looks like when I removed the custom actions and re-added, I missed adding the right params that are needed.

Thanks,
-Jatin
Posted 11 Feb, 2020 02:29:42 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 11 Feb, 2020 02:56:34 Top