"Managed Error" in AdxRegistrator.log

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

"Managed Error" in AdxRegistrator.log
Add-in not visible after client upgraded to Outlook 2013 
Mike VE




Posts: 125
Joined: 2007-09-09
One of my customers has just upgraded to Outlook 2013. On some machines everything is fine but on other the add-in has disappeared despite being uninstalled and re-installed. The adxregistrator.log file from one of these machines includes the lines
16:50:54 0416 Assembly identity is 'AddinExpress.MSO.2005'.
16:50:54 0416 Success.
16:50:54 0416 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:50:54 0416 Success.
16:50:54 0416 Calling the managed registration procedure.
16:50:54 0416 Managed Error:
Date and Time: 30/09/2014 16:50:54
Machine Name: EEF101631
IP Address: fe80::300c:27cb:d97f:4e3a%11
Current User: EEFWAN\josborne

Application Domain: C:\Program Files\Greenhill Software\PrintForTrial\
Assembly Codebase: file:///C:/Program Files/Greenhill Software/PrintForTrial/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=7.2.4055.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 7.2.4055.2005

Exception Source: AddinExpress.MSO.2005
Exception Type: System.ArgumentException
Exception Message: Wrong command line.
Exception Target Site: RegisterAssembly

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



16:50:54 0416 The add-in registration process is completed with HRESULT = -2147467259.

Could you tell me what this means and what advice I can give my customer.

Thanks
Posted 30 Sep, 2014 11:55:04 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Hello Mike,

Could you please paste the complete registration log here? Or, you can send it to the support email address. You can find the support email address in {Add-in Express installation folder}\readme.txt. Please make sure your email contains a link to this topic.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Oct, 2014 04:50:11 Top
Mike VE




Posts: 125
Joined: 2007-09-09
Hi Andrei

Here is the complete text of the log file

Add-in Express Registrator Log File: 09/30/2014 16:50:54

Installation directory: C:\Program Files\Greenhill Software\PrintForTrial\
Registrator version: 7.2.4055.0
Operating System: Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 32-bit
Process Owner: User
Command Line: "C:\Program Files\Greenhill Software\PrintForTrial\adxregistrator.exe" /RegServer
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
16:50:54 0416 Starting the add-in registration process.
16:50:54 0416 Loading mscoree.dll
16:50:54 0416 Success.
16:50:54 0416 .NET Framework installation directory:
16:50:54 0416 The latest version of .NET Framework: 'v4.0.30319'
16:50:54 0416 Loading CLR: v4.0.30319.
16:50:54 0416 Calling CLRCreateInstance method.
16:50:54 0416 Success.
16:50:54 0416 Calling GetRuntime method.
16:50:54 0416 Success.
16:50:54 0416 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:50:54 0416 The hosting API is up to date.
16:50:54 0416 Calling GetInterface method for the CorRuntimeHost interface.
16:50:54 0416 Success.
16:50:54 0416 Starting CLR...
16:50:54 0416 Success.
16:50:54 0416 Getting the CLR version.
16:50:54 0416 The CLR v4.0.30319 has been initialized successfully.
16:50:54 0416 Creating a new domain setup.
16:50:54 0416 Success.
16:50:54 0416 Getting the add-in directory.
16:50:54 0416 Success. The directory is 'C:\Program Files\Greenhill Software\PrintForTrial\'
16:50:54 0416 The 'shadow copy' is disabled.
16:50:54 0416 Creating a new application domain.
16:50:54 0416 Success.
16:50:54 0416 Getting the base directory for the domain.
16:50:54 0416 Success. The directory is 'C:\Program Files\Greenhill Software\PrintForTrial\'.
16:50:54 0416 Searching for the Add-in Express core library.
16:50:54 0416 Success. The 'AddinExpress.MSO.2005.dll' file is found.
16:50:54 0416 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:50:54 0416 Assembly identity is 'AddinExpress.MSO.2005'.
16:50:54 0416 Success.
16:50:54 0416 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:50:54 0416 Success.
16:50:54 0416 Calling the managed registration procedure.
16:50:54 0416 Managed Error:
Date and Time: 30/09/2014 16:50:54
Machine Name: EEF101631
IP Address: fe80::300c:27cb:d97f:4e3a%11
Current User: EEFWAN\josborne

Application Domain: C:\Program Files\Greenhill Software\PrintForTrial\
Assembly Codebase: file:///C:/Program Files/Greenhill Software/PrintForTrial/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=7.2.4055.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 7.2.4055.2005

Exception Source: AddinExpress.MSO.2005
Exception Type: System.ArgumentException
Exception Message: Wrong command line.
Exception Target Site: RegisterAssembly

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



16:50:54 0416 The add-in registration process is completed with HRESULT = -2147467259.
Posted 01 Oct, 2014 05:05:16 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Mike,

The problem is caused by the parameters passed to adxregistrator.exe. Please check one of these sections in the manual:

Deploying a per-user Office extension via an MSI installer
Deploying a per-machine Office extension via an MSI installer

The manual is the PDF file in the folder {Add-in Express}\Docs on your development PC. You can download the most recent version of the Developer's Guide at http://www.add-in-express.com/downloads/documentation.php.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Oct, 2014 05:29:41 Top
Mike VE




Posts: 125
Joined: 2007-09-09
Thanks Andrei

I used to offer both a per-user and an admin only version and I suspect that some thing may have gone wrong with mixing the two. However, now I am offering only a per-machine install and have thoroughly checked and tested it. I will get it to my customer and hope it cures the problem.

Thanks for your help.

Mike VE
Posted 03 Oct, 2014 09:08:13 Top
Andrei Smolin


Add-in Express team


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

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Oct, 2014 09:24:32 Top
Mike VE




Posts: 125
Joined: 2007-09-09
Hi Andrei

I have now hear back from the client. The software is installed on terminal servers. The latest version has been installed with the setup corrected as you advised. Most machines are fine but a few machines are now showing the add-in as Inactive. They sent me the loader log files fro three affected users and the really strange thing is that they log file header seemed to indicate it was being called by Word rather than Outlook.

Here is the header of one of the log files.

++++++++++++++++++++++++++
Add-in Express Loader Log File: 10/15/2014 07:56:43:930

Startup directory: C:\Program Files (x86)\Greenhill Software\PrintJust1\
Loader version: 7.5.4072.0
Operating System: Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE" /vu "C:\Users\LeeanneR\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\14ZJ1H5X\Document1 Compatibility Mode (13).doc
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
+++++++++++++++++++++++++++

In the dim distant past the add-in may have been compile for both Outlook and Word but now it just makes a few interop calls to use word to do page and character calculations and there is just a reference to Word. On checking the references I can see that they are a bit of a mess. See below

+++++++++++++++++++++++++++
Reference Name Type Version Copy Local Path
AddinExpress.MSO.2005 .NET 7.5.4072.2005 True C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin\AddinExpress.MSO.2005.dll
AddinExpress.OL.2005 .NET 7.5.4072.2005 True C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin\AddinExpress.OL.2005.dll
Extensibility .NET 7.0.3300.0 False C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\Extensibi
Interop.Office.dll .NET 2.1.0.0 True C:\VS Projects\Outlook Add-ins\PrintJust1\PrintJust1\Interops\Interop.Office.dll
Interop.Outlook.dll .NET 9.0.0.0 True C:\VS Projects\Outlook Add-ins\PrintJust1\PrintJust1\Interops\Interop.Outlook.dll
Interop.VBIDE.dll .NET 5.3.0.0 True C:\VS Projects\Outlook Add-ins\PrintJust1\PrintJust1\Interops\Interop.VBIDE.dll
Microsoft.Office.Interop.Excel .NET 11.0.0.0 True C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Redistributables\Interop Assemblies\Offic
Microsoft.Office.Interop.Word .NET 11.0.0.0 True C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\Redistributables\Interop Assemblies\Off
office .NET 11.0.0.0 True C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11\office.dll
+++++++++++++++++++++++++++++++

I seem to have two different references to two different versions of Office(2 & 11) as well as to Outlook(9), Excel(11) and Word(11). Could that have anything to do with it?
Posted 16 Oct, 2014 07:37:09 Top
Dmitry Kostochko


Add-in Express team


Posts: 2731
Joined: 2004-04-05
Hi Mike,

Most machines are fine but a few machines are now showing the add-in as Inactive. They sent me the loader log files fro three affected users and the really strange thing is that they log file header seemed to indicate it was being called by Word rather than Outlook.


Please make sure these three affected users have the latest version of your add-in installed.

I seem to have two different references to two different versions of Office(2 & 11) as well as to Outlook(9), Excel(11) and Word(11). Could that have anything to do with it?


I don't think so. However, I would recommend that you avoid mixing Primary Interop Assemblies from different Office versions in one solution.
Posted 16 Oct, 2014 10:58:56 Top
Mike VE




Posts: 125
Joined: 2007-09-09
Thanks for the comments. I am assured they are all on the current version. But what about that command line? How did an Outlook add-in get started by Word? Could there be anything lingering in the project that is causing it?
Posted 16 Oct, 2014 12:43:00 Top
Dmitry Kostochko


Add-in Express team


Posts: 2731
Joined: 2004-04-05
Hi Mike,

The command line indicates that your add-in is loaded by MS Word. That is why I assumed an older version of your add-in is installed.

Could there be anything lingering in the project that is causing it?


Check which applications are selected in the SupportedApps property of your add-in module.
Posted 17 Oct, 2014 07:10:51 Top