Installation Trouble

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

Installation Trouble
Created a Microsoft Version Neutral Word Add- in trouble with installing/deployement 
JudyH




Posts: 2
Joined: 2016-05-24
My company is designing a word add-in that will connect to our databases and we decided to use add-in express for the version neutrality. After getting it to work with our software and word I created the setup project and started getting ready for deployment. Now I noticed every time I launched word my add-in would always fall under "Inactive" add -in's and I would have to go through the option menu to activate it several times before it would show up. I thought this was a problem with just my machine/word settings and started testing deployment. So I created a setup project and went through the deployment/ install tips/guide and tried to setup the add-in on a co-workers computer. The add-in displayed but didn't load properly. So i tried it on my development machine. I have tried setting it for all users installing, uninstalling, setting it for per user installing, uninstalling, cleaning my solution, and I have no clue where to go from here as there is very little indication of what is actually wrong.

I have been testing with word 2007, designing in visual studios 2010, c#

here is the latest log file for the add in:
Add-in Express Loader Log File: 05/24/2016 09:15:41:288

Startup directory: C:\Users\Judy\AppData\Local\KSB Dental\DoxWordAddInV2\
Loader version: 8.1.4350.0
Operating System: Microsoft Windows 10 Professional (build 10586), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
09:15:41:290 4264 1940 Start.
09:15:41:290 4264 1940 Creating a new instance of the add-in loader.
09:15:41:290 4264 1940 Loading mscoree.dll
09:15:41:290 4264 1940 Success.
09:15:41:290 4264 1940 Loading the configuration from the system registry.
09:15:41:290 4264 1940 Getting the latest CLR version.
09:15:41:290 4264 1940 The latest CLR version is 'v4.0.30319'.
09:15:41:290 4264 1940 The configuration has been loaded successfully.
09:15:41:290 4264 1940 Runtime version: v4.0.30319.
09:15:41:290 4264 1940 Assembly name: DoxWordAddInV2.
09:15:41:290 4264 1940 Class name: DoxWordAddInV2.AddinModule.
09:15:41:290 4264 1940 Registry key: CLSID\{CCFED840-A4E7-479E-B206-AA3071AE5CF9}.
09:15:41:290 4264 1940 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
09:15:41:290 4264 1940 Loading CLR: v4.0.30319.
09:15:41:290 4264 1940 Calling CLRCreateInstance method.
09:15:41:290 4264 1940 Success.
09:15:41:290 4264 1940 Calling GetRuntime method.
09:15:41:290 4264 1940 Success.
09:15:41:290 4264 1940 Checking if the hosting API of .NET Framework v4.0 beta is installed.
09:15:41:290 4264 1940 The hosting API is up to date.
09:15:41:290 4264 1940 Calling GetInterface method for the CorRuntimeHost interface.
09:15:41:290 4264 1940 Success.
09:15:41:290 4264 1940 Starting CLR...
09:15:41:290 4264 1940 Success.
09:15:41:290 4264 1940 Getting the CLR version.
09:15:41:290 4264 1940 The CLR v4.0.30319 has been initialized successfully.
09:15:41:291 4264 1940 Creating a new domain setup.
09:15:41:291 4264 1940 Success.
09:15:41:291 4264 1940 Getting the add-in directory.
09:15:41:291 4264 1940 Success. The directory is 'C:\Users\Judy\AppData\Local\KSB Dental\DoxWordAddInV2\'
09:15:41:291 4264 1940 The 'shadow copy' is disabled.
09:15:41:291 4264 1940 Creating a new application domain.
09:15:41:291 4264 1940 Success.
09:15:41:291 4264 1940 Creating an instance of the managed class. Assembly identity: 'DoxWordAddInV2'
09:15:42:133 4264 1940 Exception has been thrown by the target of an invocation. Error code: 0x80131604
09:15:50:779 4264 1940 Start.
09:15:50:779 4264 1940 Creating a new instance of the add-in loader.
09:15:50:779 4264 1940 Success.
09:15:50:779 4264 1940 Loading the configuration from the system registry.
09:15:50:779 4264 1940 Getting the latest CLR version.
09:15:50:780 4264 1940 The latest CLR version is 'v4.0.30319'.
09:15:50:780 4264 1940 The configuration has been loaded successfully.
09:15:50:780 4264 1940 Runtime version: v4.0.30319.
09:15:50:780 4264 1940 Assembly name: DoxWordAddInV2.
09:15:50:780 4264 1940 Class name: DoxWordAddInV2.AddinModule.
09:15:50:780 4264 1940 Registry key: CLSID\{CCFED840-A4E7-479E-B206-AA3071AE5CF9}.
09:15:50:780 4264 1940 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
09:15:50:780 4264 1940 Creating an instance of the managed class. Assembly identity: 'DoxWordAddInV2'
09:15:50:961 4264 1940 Exception has been thrown by the target of an invocation. Error code: 0x80131604
09:15:59:420 4264 1940 Start.
09:15:59:420 4264 1940 Creating a new instance of the add-in loader.
09:15:59:420 4264 1940 Success.
09:15:59:420 4264 1940 Loading the configuration from the system registry.
09:15:59:420 4264 1940 Getting the latest CLR version.
09:15:59:421 4264 1940 The latest CLR version is 'v4.0.30319'.
09:15:59:421 4264 1940 The configuration has been loaded successfully.
09:15:59:421 4264 1940 Runtime version: v4.0.30319.
09:15:59:421 4264 1940 Assembly name: DoxWordAddInV2.
09:15:59:421 4264 1940 Class name: DoxWordAddInV2.AddinModule.
09:15:59:421 4264 1940 Registry key: CLSID\{CCFED840-A4E7-479E-B206-AA3071AE5CF9}.
09:15:59:421 4264 1940 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
09:15:59:421 4264 1940 Creating an instance of the managed class. Assembly identity: 'DoxWordAddInV2'
09:15:59:601 4264 1940 Exception has been thrown by the target of an invocation. Error code: 0x80131604

any help would be appreciated. Thank you.
Posted 24 May, 2016 09:40:49 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Judy,

JudyH writes:
09:15:41:291 4264 1940 Creating an instance of the managed class. Assembly identity: 'DoxWordAddInV2' 09:15:42:133 4264 1940 Exception has been thrown by the target of an invocation. Error code: 0x80131604


The exception occurs when the module is being created. Consider moving all custom code from the constructor of the add-in module to the AddinInitialize or OnRibbonBeforeshow event. The same applies to *every* initializer of complex-type variables declared on the class level in the add-in module.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2016 00:50:30 Top
JudyH




Posts: 2
Joined: 2016-05-24
Thank you very much, that solved the problem.
Posted 27 May, 2016 09:00:09 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
My congratulations!


Andrei Smolin
Add-in Express Team Leader
Posted 27 May, 2016 09:02:10 Top