Addin fails to load on first Outlook startup after Windows shutdown

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

Addin fails to load on first Outlook startup after Windows shutdown
Problems loading the add-in for the first time 
J?rgen Haverkamp


Guest


Dear Add-In-Express team,

one of our customers is experiencing a problem after starting the add-in for the first time after a system shutdown.

The adxloader.log looks like this.



Add-in Express Loader Log File: 02/14/2019 13:39:20:434

Startup directory: C:Program Files (x86)Addin-Code
Loader version: 8.4.4395.0
Operating System: Microsoft Windows 10 Professional (build 17763), 64-bit
Process Owner: Administrator
Command Line: "C:Program Files (x86)Microsoft Office
ootOffice16OUTLOOK.EXE" 
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
13:39:20:437 8120 6028 Start.
13:39:20:437 8120 6028 Creating a new instance of the add-in loader.
13:39:20:437 8120 6028 Loading mscoree.dll
13:39:20:437 8120 6028 Success.
13:39:20:437 8120 6028 Loading the configuration from the system registry.
13:39:20:437 8120 6028 Getting the latest CLR version.
13:39:20:437 8120 6028 The latest CLR version is 'v4.0.30319'.
13:39:20:437 8120 6028 The configuration has been loaded successfully.
13:39:20:437 8120 6028     Runtime version: v4.0.30319.
13:39:20:437 8120 6028     Assembly name: Company.Client.UI.
13:39:20:437 8120 6028     Class name: Company.Client.UI.MainController.
13:39:20:437 8120 6028     Registry key: CLSID{8E9B4076-E988-4ED5-9EC5-3202814D535B}.
13:39:20:467 8120 6028 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
13:39:20:467 8120 6028 Loading CLR: v4.0.30319.
13:39:20:467 8120 6028 Calling CLRCreateInstance method.
13:39:20:467 8120 6028 Success.
13:39:20:467 8120 6028 Calling GetRuntime method.
13:39:20:467 8120 6028 Success.
13:39:20:467 8120 6028 Checking if the hosting API of .NET Framework v4.0 beta is installed.
13:39:20:467 8120 6028 The hosting API is up to date.
13:39:20:467 8120 6028 Calling GetInterface method for the CorRuntimeHost interface.
13:39:20:467 8120 6028 Error code: 0x80131022



If the outlook client is restarted the add-in loads without problems.
We checked the windows event log, but we cannot find any warnings or errors occurring at the same time.

Is there a way to diagnose the problem any further?

Kind regards,

J?rgen Haverkamp
Posted 18 Feb, 2019 07:42:17 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello J?rgen,

Does switching to using a later loader version (8.7 or 9.2) also fix the issue? I would also try to turn the .NET Framework 3.5 on.


Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2019 07:35:16 Top
J?rgen Haverkamp


Guest


Dear Andrei,

I updated the loader version to 9.2 and we will try to reproduce the issue.

But why change to Framework 3.5? Is there a problem using framework 4.7.X when using addin-express?

Kind regard,

J?rgen Haverkamp
Posted 25 Feb, 2019 10:33:06 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hello J?rgen,

That was a suggestion to turn .NET Framework 3.5 on, not to use it. The suggestion is based on a possibility that your project or any of dependency assemblies uses .NET 2.0-3.5.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Feb, 2019 02:55:51 Top