Outlook add-in not loading when debugging from Visual Studio

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

Outlook add-in not loading when debugging from Visual Studio
 
Barry Jones


Guest


I am having the same issue as mentioned in this forum post https://www.add-in-express.com/forum/read.php?FID=5&TID=14070.

Our add-in has been working for years but today when I try to debug from VS or when I create a MSI installer the addin does not load in Outlook. I'm currently on version 8.6.4408 and I've tried updating to the latest 9.1.4620 but the activation wizard says that my license is not valid. (Even though the subscription page says my license is valid till Nov 2018)

- I have tried unregistering and then registering the addin.
- I am running VS Studio as administrator
- RegisterForAllUsers = False in the AddinModule.
- It is not being disabled, load behaviour is 3 and I can see the addin listed in Outlook under COM Add-ins
- There is nothing in the Outlook resiliency registry location
- Code signing seems fine, no errors or invalid certificates
- I have restarted my PC
Posted 11 Jul, 2018 14:09:08 Top
Barry Jones


Guest


I'm Looking in the event viewer at Windows Logs > Application and I do not see the add-in loading like I would expect


Outlook loaded the following add-in(s):


Name: Microsoft Exchange Add-in
Description: Exchange support for Unified Messaging, e-mail permission rules, and calendar availability.
ProgID: UmOutlookAddin.FormRegionAddin
GUID: {F959DBBB-3867-41F2-8E5F-3B8BEFAA81B3}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files (x86)\Microsoft Office\Root\Office16\ADDINS\UmOutlookAddin.dll
Boot Time (Milliseconds): 15

Name: Skype Meeting Add-in for Microsoft Office 2016
Description: Skype Meeting Add-in for Microsoft Office 2016
ProgID: UCAddin.LyncAddin.1
GUID: {A6A2383F-AD50-4D52-8110-3508275E77F7}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files (x86)\Microsoft Office\Root\Office16\UCAddin.dll
Boot Time (Milliseconds): 31

Name: OutlookSpy Developer Tool
Description:
ProgID: OutSpy.OutlookSpyAddin
GUID: {E85620E6-648E-466E-98B3-BF77D720A00C}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files (x86)\OutlookSpy\OutSpy.dll
Boot Time (Milliseconds): 79

Name: Outlook Social Connector 2016
Description: Connects to social networking sites and provides people, activity, and status information.
ProgID: OscAddin.Connect
GUID: {2163EB1F-3FD9-4212-A41F-81D1F933597F}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files (x86)\Microsoft Office\Root\Office16\SOCIALCONNECTOR.DLL
Boot Time (Milliseconds): 15

Name: OneNote Notes about Outlook Items
Description: Adds Send to OneNote and Notes about this Item buttons to the command bar
ProgID: OneNote.OutlookAddin
GUID: {93E5752E-B889-47C5-8545-654EE2533C64}
Load Behavior: 3
HKLM: 1
Location: C:\Program Files (x86)\Microsoft Office\Root\Office16\ONBttnOL.dll
Boot Time (Milliseconds): 16

Name: Microsoft SharePoint Server Colleague Import Add-in
Description: The Add-in allows Microsoft SharePoint Server to import colleague suggestions based on your Outlook content
ProgID: ColleagueImport.ColleagueImportAddin
GUID: {EFEF7FDB-0CED-4FB6-B3BB-3C50D39F4120}
Load Behavior: 3
HKLM: 0
Location: C:\Program Files (x86)\Microsoft Office\Root\Office16\ADDINS\ColleagueImport.dll
Boot Time (Milliseconds): 15
Posted 11 Jul, 2018 14:39:22 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Barry,

Whenever Office loads your add-in, an adxloader.log file is created. When using Add-in Express 8.6, you find it in {user profile}\[My ]Documents\Add-in Express\adxloader.log. Can you please close Outlook, check that there's no extra OUTLOOK.EXE hanging on the Processes tab of the Task Manager window, start Outlook and copy adxloader.log here? If there's no log file, open the COM Add-ins dialog and turn the add-in on. Does this create the log file?


Andrei Smolin
Add-in Express Team Leader
Posted 12 Jul, 2018 05:23:08 Top
Barry Jones


Guest


I received the license key for version 9 from support this morning. I was able to update to version 9.1.4620 and this has resolved the issue with our add-in not loading. Not sure what the original issue was as I tried numerous times to uninstall version 8 and re-install it.

Is there a different location for the adxloader/adxregister with version 9?
Posted 12 Jul, 2018 15:28:44 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Barry,

Congratulations!

Starting from 8.7, the default location of the log files is {user profile}\AppData\Local\Temp\<ProductName>\adxregistrator.log; the ProductName part reflects the ProductName field of AssemblyInfo.cs (AssemblyInfo.vb).


Andrei Smolin
Add-in Express Team Leader
Posted 13 Jul, 2018 05:04:48 Top
Barry Jones


Guest


There is still anissue with getting the add-in to automatically start. The LoadBehavior is set "Connected" and "LoadAtStartUp". After I register the add-in through the context menu in Visual Studio I can see the registry entry in Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\<PRODUCT_NAME> has the correct LoadBehavior of 3.

When I debug through Visual Studio the add-in does not load on startup. When I open COM Add-ins I can see our add in is listed as "Unloaded". If I enable it then click OK the add-in loads for this session but go backs to Unloaded if I debug it again.

I've checked various keys in the registry including:

- The add-in is not listed in Resiliency\DisabledItems Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DisabledItems

- The add-in is not listed in Resiliency\CrashingAddinList Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\CrashingAddinList

- The add-in does have the correct LoadBehavior value of 3


There are no errors in the EventViewer. The add-in is not listed in the EventViewer for add-ins loaded by Outlook (As shown in my previous comment above.)

The adxloader.log is only created when I enable the add-in through COM Add-ins. Everything looks OK but I've attached it to this thread in case you can spot anything. (I've removed our product name and path)



Add-in Express Loader Log File: 07/16/2018 08:50:30:633

Startup directory: C:\<PATH>\bin\Debug\
Loader version: 9.1.4620.0
Operating System: Microsoft Windows 10 Professional (build 17134), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
------------------------------------------------------------------------
08:50:30:635 6868 22628 Start.
08:50:30:635 6868 22628 The minimum supported Office version is 14
08:50:30:635 6868 22628 The host's version is 16.0.10228.20104
08:50:30:635 6868 22628 Creating a new instance of the add-in loader.
08:50:30:635 6868 22628 Loading mscoree.dll
08:50:30:636 6868 22628 Success.
08:50:30:636 6868 22628 Loading the configuration from the system registry.
08:50:30:636 6868 22628 Getting the latest CLR version.
08:50:30:637 6868 22628 The latest CLR version is 'v4.0.30319'.
08:50:30:637 6868 22628 The configuration has been loaded successfully.
08:50:30:637 6868 22628 Runtime version: v4.0.30319.
08:50:30:637 6868 22628 Assembly name: <PRODUCT_NAME>, PublicKeyToken=24AFF322D9895D67.
08:50:30:637 6868 22628 Class name: <PRODUCT_NAME>.Addin.AddinModule.
08:50:30:637 6868 22628 Registry key: CLSID\{AFE403BF-CA67-4999-B46B-6AF545CA849F}.
08:50:30:637 6868 22628 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
08:50:30:637 6868 22628 Loading CLR: v4.0.30319.
08:50:30:637 6868 22628 Calling CLRCreateInstance method.
08:50:30:637 6868 22628 Success.
08:50:30:637 6868 22628 Calling GetRuntime method.
08:50:30:637 6868 22628 Success.
08:50:30:637 6868 22628 Checking if the hosting API of .NET Framework v4.0 beta is installed.
08:50:30:721 6868 22628 The hosting API is up to date.
08:50:30:721 6868 22628 Calling SetDefaultStartupFlags method.
08:50:30:721 6868 22628 Success.
08:50:30:721 6868 22628 Calling GetInterface method for the CorRuntimeHost interface.
08:50:30:721 6868 22628 Success.
08:50:30:721 6868 22628 Starting CLR...
08:50:30:721 6868 22628 Success.
08:50:30:721 6868 22628 Getting the CLR version.
08:50:30:721 6868 22628 The CLR v4.0.30319 has been initialized successfully.
08:50:30:780 6868 22628 Creating a new domain setup.
08:50:30:782 6868 22628 Success.
08:50:30:782 6868 22628 Getting the add-in directory.
08:50:30:782 6868 22628 Success. The directory is '<PATH>\bin\Debug\'
08:50:30:783 6868 22628 The configuration file is '<PATH>\bin\Debug\<PRODUCT_NAME>.dll.config'
08:50:30:783 6868 22628 The 'shadow copy' is disabled.
08:50:30:783 6868 22628 Creating a new application domain.
08:50:30:796 6868 22628 Success.
08:50:30:796 6868 22628 Creating an instance of the managed class. Assembly identity: '<PRODUCT_NAME>, PublicKeyToken=24AFF322D9895D67'
08:50:31:063 6868 22628 Success.
08:50:31:064 6868 22628 Unwrapping the managed class.
08:50:31:088 6868 22628 Success.
08:50:31:088 6868 22628 Querying the add-in extensibility.
08:50:31:088 6868 22628 Success.
08:50:31:088 6868 22628 Querying the custom task panes.
08:50:31:088 6868 22628 Success.
08:50:31:088 6868 22628 Querying the ribbon extensibility.
08:50:31:088 6868 22628 Success.
08:50:31:088 6868 22628 Querying the form regions.
08:50:31:088 6868 22628 Success.
08:50:31:088 6868 22628 Querying the encryption provider.
08:50:31:088 6868 22628 The 'EncryptionProvider' interface is not supported.
08:50:31:088 6868 22628 Getting the dispid of the 'Dispose' method.
08:50:31:091 6868 22628 Success.
08:50:31:091 6868 22628 Getting the dispid of the 'InitializeLoaderService' method.
08:50:31:091 6868 22628 Success.
08:50:31:091 6868 22628 Invoking the 'InitializeLoaderService' method.
08:50:31:091 6868 22628 Success.
08:50:31:091 6868 22628 The instance of the managed add-in class has been created successfully.
Posted 16 Jul, 2018 10:59:09 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Barry,

Make sure that the "CLSID key" mentioned in section Locating COM Add-ins in the Registry (see the PDF file in the folder {Add-in Express}\Docs on your development PC) points to the correct version of your add-in assembly.

Also, if your add-in is installed, uninstall it, unregister the project, start the host application to check if the add-in is gone, close the host application, and register the add-in project anew.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jul, 2018 04:49:35 Top
Barry Jones


Guest


Hello Andrei.

The CLSID entries in the registry do match the version in our add-in assembly.

I have tried your steps to uninstall and unregister but this has no effect.

Do you have anything else I could try? I cannot see any errors in the Visual Studio debugger, the event viewer or adx logs. Our add-in has been working for a number of years but any new builds are not automatically loading on startup. The only way to enable our add-in is to go through Manage COM add-ins and manually check the box. If I restart Outlook the add-in does not start up again automatically.
Posted 02 Aug, 2018 10:16:49 Top
Barry Jones


Guest


I've also recently started seeing this message after I upgraded to version 9. Reading on previous threads in the forum it looks like I can safely ignore this?

[img]https://postimg.cc/image/446fn3cil/[/img]
Posted 02 Aug, 2018 10:23:49 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Barry,

I would like to access your PC remotely within the next 8-9 hours. Is this possible? If yes, I suggest using TeamViewer; in this case you'll need to send me your session ID and password to the support email address.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Aug, 2018 02:27:08 Top