AddIn is InActive

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

AddIn is InActive
 
xblb




Posts: 25
Joined: 2017-11-27
Good day!

I launch AddIn for Word 2016 in debug mode from VS 2015. For some reason it became inactive, although previously everything worked fine.
Before this, the truth was updated by Add-in Express for Office and .NET, Professional to version 4450.
The add-in is listed under the Active Application Add-ins category and the add-in is checked in the COM Add-ins dialog.
Uncheck / check in the COM Add-ins dialog does not change anything.
I do not observe any errors (and the code did not change).
Registration is normal.
Upgrading to version 4452 did not change anything.

Add-in Express Loader Log File: 04/03/2018 16:39:46:527

Startup directory: A:\TFS2008-2010\ASOI\Source\ASOI.AddIns.Word\bin\Debug\
Loader version: 8.9.4452.0
Operating System: Microsoft Windows 10 Professional (build 16299), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files\Microsoft Office\Office16\WINWORD.EXE"
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
------------------------------------------------------------------------
16:39:46:528 2960 14308 Start.
16:39:46:528 2960 14308 The minimum supported Office version is 11
16:39:46:528 2960 14308 The host's version is 16.0.4666.0
16:39:46:528 2960 14308 Creating a new instance of the add-in loader.
16:39:46:528 2960 14308 Loading mscoree.dll
16:39:46:528 2960 14308 Success.
16:39:46:528 2960 14308 Loading the configuration from the system registry.
16:39:46:528 2960 14308 Getting the latest CLR version.
16:39:46:528 2960 14308 The latest CLR version is 'v4.0.30319'.
16:39:46:528 2960 14308 The configuration has been loaded successfully.
16:39:46:528 2960 14308 Runtime version: v4.0.30319.
16:39:46:528 2960 14308 Assembly name: ASOI.AddIns.Word, PublicKeyToken=496A5C499302CDD2.
16:39:46:528 2960 14308 Class name: ASOI_AddIns_Word.ThisAddIn.
16:39:46:528 2960 14308 Registry key: CLSID\{45B647F0-8E9D-43CC-9109-934E143971BD}.
16:39:46:528 2960 14308 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
16:39:46:528 2960 14308 Loading CLR: v4.0.30319.
16:39:46:529 2960 14308 Calling CLRCreateInstance method.
16:39:46:529 2960 14308 Success.
16:39:46:529 2960 14308 Calling GetRuntime method.
16:39:46:529 2960 14308 Success.
16:39:46:529 2960 14308 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:39:46:750 2960 14308 The hosting API is up to date.
16:39:46:750 2960 14308 Calling SetDefaultStartupFlags method.
16:39:46:750 2960 14308 Success.
16:39:46:750 2960 14308 Calling GetInterface method for the CorRuntimeHost interface.
16:39:46:750 2960 14308 Success.
16:39:46:750 2960 14308 Starting CLR...
16:39:46:750 2960 14308 Success.
16:39:46:750 2960 14308 Getting the CLR version.
16:39:46:750 2960 14308 The CLR v4.0.30319 has been initialized successfully.
16:39:46:750 2960 14308 Creating a new domain setup.
16:39:46:751 2960 14308 Success.
16:39:46:751 2960 14308 Getting the add-in directory.
16:39:46:751 2960 14308 Success. The directory is 'A:\TFS2008-2010\ASOI\Source\ASOI.AddIns.Word\bin\Debug\'
16:39:46:752 2960 14308 The configuration file is 'A:\TFS2008-2010\ASOI\Source\ASOI.AddIns.Word\bin\Debug\ASOI.AddIns.Word.dll.config'
16:39:46:752 2960 14308 The 'shadow copy' is disabled.
16:39:46:752 2960 14308 Creating a new application domain.
16:39:46:772 2960 14308 Success.
16:39:46:772 2960 14308 Creating an instance of the managed class. Assembly identity: 'ASOI.AddIns.Word, PublicKeyToken=496A5C499302CDD2'
16:39:47:001 2960 14308 Success.
16:39:47:001 2960 14308 Unwrapping the managed class.
16:39:47:003 2960 14308 Success.
16:39:47:003 2960 14308 Querying the add-in extensibility.
16:39:47:003 2960 14308 Success.
16:39:47:003 2960 14308 Querying the custom task panes.
16:39:47:003 2960 14308 Success.
16:39:47:003 2960 14308 Querying the ribbon extensibility.
16:39:47:003 2960 14308 Success.
16:39:47:003 2960 14308 Querying the form regions.
16:39:47:003 2960 14308 Success.
16:39:47:003 2960 14308 Querying the encryption provider.
16:39:47:004 2960 14308 The 'EncryptionProvider' interface is not supported.
16:39:47:004 2960 14308 Getting the dispid of the 'Dispose' method.
16:39:47:006 2960 14308 Success.
16:39:47:006 2960 14308 Getting the dispid of the 'InitializeLoaderService' method.
16:39:47:006 2960 14308 Success.
16:39:47:006 2960 14308 Invoking the 'InitializeLoaderService' method.
16:39:47:006 2960 14308 Success.
16:39:47:006 2960 14308 The instance of the managed add-in class has been created successfully.

When installing from the previously assembled installer everything is fine.

Thanks,
Posted 03 Apr, 2018 09:29:04 Top
Andrei Smolin


Add-in Express team


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

In the InitializeComponent() method - it is called from the constructor of the add-in module - make sure that several first lines contains this.components (Me.components in VB.NET) similar to the lines below:

            this.Button1 = new AddinExpress.MSO.ADXRibbonButton(this.components);
            this.Button2 = new AddinExpress.MSO.ADXRibbonButton(this.components);
            this.adxRibbonSeparator1 = new AddinExpress.MSO.ADXRibbonSeparator(this.components);
            this.adxRibbonBox1 = new AddinExpress.MSO.ADXRibbonBox(this.components);


If this part is missing - e.g. new AddinExpress.MSO.ADXRibbonButton() - open Tools | Options | Windows Form Designer and set Optimized Code Generation = false.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2018 09:58:34 Top
xblb




Posts: 25
Joined: 2017-11-27
I'm using a designer. Set Optimized Code Generation = false nothing has changed
Posted 03 Apr, 2018 10:27:59 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
I've noticed the following mismatch:

You said:
For some reason it became inactive


Then you said:
The add-in is listed under the Active Application Add-ins category


Could you please explain?

If possible/applicable please send me a video demonstrating the issue to the support email address. You can use Jing; it's free.


Andrei Smolin
Add-in Express Team Leader
Posted 03 Apr, 2018 10:43:54 Top
xblb




Posts: 25
Joined: 2017-11-27
Did you get my e-mail?
Posted 04 Apr, 2018 05:48:28 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Yes. I'll look into your project within the next hour.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2018 07:06:49 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Ah, that isn't a project, that's a video. I suppose you've run into an issue introduced by the latest build: we have several reports but I still don't know what causes the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2018 07:31:07 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Leonid,

Could you please send me the Initialize method from your add-in module? This method is called from the constructor of the module. I'm trying to find the cause of the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2018 07:48:36 Top
xblb




Posts: 25
Joined: 2017-11-27
InitializeComponent from AddinModule.Designer.cs?
Posted 04 Apr, 2018 08:09:13 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Don't send it. I've found the cause of the issue. I'll describe it in the next post.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2018 08:16:27 Top