Add-in unloaded

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

Add-in unloaded
 
Meidan Alon




Posts: 37
Joined: 2008-09-21
Hi,

I have a com add-in for Word. The installation seems to go with no problems, but when I start Word, the add-in isn't loaded.
When I look in Word's add-in manager, the add-in is unchecked and the Load Behavior says: "Unloaded", laso nothing happens if I check the checkbox.

In Word's Trust Center -> Add-ins, none of the checkboxes are checked.

The same add-in was loaded successfully in Excel.

Here's adxloader's log:
Add-in Express Loader Log File: 10/19/2008 09:38:44

Startup directory: Loader version: 4.3.1910 C:\Users\meidana\AppData\Roaming\MyAddin\
------------------
09:38:44 472 Starting the add-in registration process.
09:38:44 472 Loading the latest CLR version.
09:38:44 472 The CLR v2.0.50727 has been initialized successfully.
09:38:44 472 Creating a new domain setup.
09:38:44 472 Success.
09:38:44 472 Getting the add-in directory.
09:38:44 472 Success. The directory is 'C:\Users\meidana\AppData\Roaming\MyAddin\'
09:38:44 472 The configuration file is 'C:\Users\meidana\AppData\Roaming\MyAddin\app.config'
09:38:44 472 The 'shadow copy' is disabled.
09:38:44 472 Creating a new application domain.
09:38:44 472 Success.
09:38:44 472 Getting the base directory for the domain.
09:38:44 472 Success. The directory is 'C:\Users\meidana\AppData\Roaming\MyAddin\'.
09:38:44 472 Seaching for the Add-in Express core library.
09:38:44 472 Success. The 'AddinExpress.MSO.2005.dll' file has been found.
09:38:44 472 Creating an instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
09:38:44 472 Assembly identity is 'AddinExpress.MSO.2005'.
09:38:44 472 Success.
09:38:44 472 Unwrapping the instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
09:38:44 472 Success.
09:38:44 472 Test 'C:\Users\meidana\AppData\Roaming\MyAddin\adxloader.dll.manifest'.
09:38:44 472 Test 'C:\Users\meidana\AppData\Roaming\MyAddin\adxloader.dll.manifest'.
09:38:44 472 Creating an instance of the XML parser class.
09:38:44 472 Success.
09:38:44 472 Loading the manifest file (C:\Users\meidana\AppData\Roaming\MyAddin\adxloader.dll.manifest).
09:38:44 472 Success.
09:38:44 472 Getting the root element of the manifest (C:\Users\meidana\AppData\Roaming\MyAddin\adxloader.dll.manifest).
09:38:44 472 Success.
09:38:44 472 Getting the 'assemblyIdentity' element of the manifest (C:\Users\meidana\AppData\Roaming\MyAddin\adxloader.dll.manifest).
09:38:44 472 Success.
09:38:44 472 Seraching fo the 'name' attribute of the 'assemblyIdentity' element.
09:38:44 472 Success. The name is 'MyAddin1, PublicKeyToken=9e9ef27b97677eed'.
09:38:44 472 Calling the managed procedure to register the 'MyAddin1, PublicKeyToken=9e9ef27b97677eed' assembly.
09:38:44 1288 Connecting to the application domain of the Add-in Express loader.
09:38:44 1288 Success.
09:38:44 1288 Loading the 'MyAddin1, PublicKeyToken=9e9ef27b97677eed' assembly.
09:38:44 1288 Success.
09:38:44 1288 Registering the 'MyAddin1, PublicKeyToken=9e9ef27b97677eed' assembly (user).
09:38:44 1288 Registering the 'GingerAddInCore.GingerTaskPane' type.
09:38:44 1288 Searching for static methods that contain the 'ComRegisterFunction' attribute.
09:38:44 1288 The 'GingerAddInCore.GingerTaskPane' type has been registered successfully.
09:38:44 1288 Registering the 'GingerClientAddIn.ADXGingerControl' type.
09:38:44 1288 Searching for static methods that contain the 'ComRegisterFunction' attribute.
09:38:44 1288 The 'GingerClientAddIn.ADXGingerControl' type has been registered successfully.
09:38:44 1288 Registering the 'GingerClientAddIn.AddinModule' type.
09:38:44 1288 Searching for static methods that contain the 'ComRegisterFunction' attribute.
09:38:44 1288 Calling the 'AddinRegister' static method.
09:38:44 1288 The 'GingerClientAddIn.AddinModule' type has been registered successfully.
09:38:44 1288 The ' MyAddin1, PublicKeyToken=9e9ef27b97677eed' assembly has been registered successfully.
09:38:44 1288 The managed registration process is complete with HRESULT = 0.
09:38:44 472 The add-in registration process is complete with HRESULT = 0.

Any ideas?

Thanks.

Posted 19 Oct, 2008 04:45:21 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Meidan,

Please check up the list of disabled add-ins. Click the Tools | Trust center... and select the Add-ins tab in the dialog window. Find your add-in in the "Disabled Application add-ins" category at the bottom of the list. Is the add-in listed here?
.NET, Extended MAPI, Windows Phone & RT
Posted 19 Oct, 2008 14:28:17 Top
Meidan Alon




Posts: 37
Joined: 2008-09-21
I'm using office 2007, so I'm not sure I'm looking in the right place.
"Disabled Application add-ins" is not under Trust Center but under Add-ins, and my add-in is there, but as I said when I try to enable it (by selecting the checkbox) nothing happens.
Posted 19 Oct, 2008 15:00:42 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Meidan,

Sorry, I gave you the wrong information. Go to the "Word options" | select the "Add-Ins" tab | select in the combobox at the bottom of the window the "Disabled Items" and press the "Go" button. Then enable your add-in.

Does it help?
.NET, Extended MAPI, Windows Phone & RT
Posted 19 Oct, 2008 16:21:16 Top
Meidan Alon




Posts: 37
Joined: 2008-09-21
It helped.
Any idea why and how an add-in would get disabled?
Posted 20 Oct, 2008 05:15:14 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25

Good news!

To prevent the add-in from unloading you need to sign the adxloader.dll with a digital signature or adjust the security policy settings.
.NET, Extended MAPI, Windows Phone & RT
Posted 20 Oct, 2008 05:40:39 Top
Meidan Alon




Posts: 37
Joined: 2008-09-21
I need to sign the adxloader.dll?
Isn't it your dll? I don't have it's sources.
Posted 20 Oct, 2008 07:53:05 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Meidan,

You can sign the adxloader.dll without sources. Please have a look at the following topic.
.NET, Extended MAPI, Windows Phone & RT
Posted 20 Oct, 2008 08:22:11 Top