outlook addin activation

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

outlook addin activation
 
Thomas Lauer




Posts: 67
Joined: 2011-01-24
my outlook addin is activated However, I have to activate the checkbox after every outlook start under file options com-add-ins manually.

best regards
Thomas
Posted 19 May, 2018 16:39:00 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Thomas,

Please check if your add-in generates an exception at startup.


Andrei Smolin
Add-in Express Team Leader
Posted 21 May, 2018 03:58:07 Top
Thomas Lauer




Posts: 67
Joined: 2011-01-24
Can i See the exeption in a log file?
Adxloader.log?
Posted 21 May, 2018 04:34:57 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Only if the exception occurs on the loading stage. The exception may occur in your code after the loader writes "The instance of the managed add-in class has been created successfully" in adxloader.log e.g. when you handle his or that event.


Andrei Smolin
Add-in Express Team Leader
Posted 21 May, 2018 04:45:35 Top
Thomas Lauer




Posts: 67
Joined: 2011-01-24
I can not find an exception in my code. the adxloader.log and adxregister.log are also ok.
when i manual activate the checkbox the addin runs whisout problmes. when i now close outlook
and restart the checkbox is unchecked.

Adxloader ------------------------------
Add-in Express Loader Log File: 05/22/2018 16:26:37:133

Startup directory: C:\CS\CS\EMCrypt\EMCrypt_7.7.1\EMCrypt\bin\Debug\
Loader version: 9.0.4610.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 16299), 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
------------------------------------------------------------------------
16:26:37:134 12572 1860 Start.
16:26:37:134 12572 1860 The minimum supported Office version is 14
16:26:37:135 12572 1860 The host's version is 16.0.9226.2156
16:26:37:135 12572 1860 Creating a new instance of the add-in loader.
16:26:37:135 12572 1860 Loading mscoree.dll
16:26:37:135 12572 1860 Success.
16:26:37:135 12572 1860 Loading the configuration from the system registry.
16:26:37:136 12572 1860 Getting the latest CLR version.
16:26:37:136 12572 1860 The latest CLR version is 'v4.0.30319'.
16:26:37:136 12572 1860 The configuration has been loaded successfully.
16:26:37:136 12572 1860 Runtime version: v4.0.30319.
16:26:37:136 12572 1860 Assembly name: EMCrypt.
16:26:37:136 12572 1860 Class name: EMCrypt.AddinModule.
16:26:37:136 12572 1860 Registry key: CLSID\{01B3A6C7-F020-4634-8E85-807CE190930F}.
16:26:37:138 12572 1860 Attempting to create a new instance of the managed add-in class: CLR - v4.0.30319
16:26:37:138 12572 1860 Loading CLR: v4.0.30319.
16:26:37:138 12572 1860 Calling CLRCreateInstance method.
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Calling GetRuntime method.
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:26:37:138 12572 1860 The hosting API is up to date.
16:26:37:138 12572 1860 Calling SetDefaultStartupFlags method.
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Calling GetInterface method for the CorRuntimeHost interface.
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Starting CLR...
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Getting the CLR version.
16:26:37:138 12572 1860 The CLR v4.0.30319 has been initialized successfully.
16:26:37:138 12572 1860 Creating a new domain setup.
16:26:37:138 12572 1860 Success.
16:26:37:138 12572 1860 Getting the add-in directory.
16:26:37:138 12572 1860 Success. The directory is 'C:\CS\CS\EMCrypt\EMCrypt_7.7.1\EMCrypt\bin\Debug\'
16:26:37:138 12572 1860 The 'shadow copy' is enabled.
16:26:37:138 12572 1860 Creating a new application domain.
16:26:37:144 12572 1860 Success.
16:26:37:144 12572 1860 Creating an instance of the managed class. Assembly identity: 'EMCrypt'
16:26:37:423 12572 1860 Success.
16:26:37:423 12572 1860 Unwrapping the managed class.
16:26:37:426 12572 1860 Success.
16:26:37:426 12572 1860 Querying the add-in extensibility.
16:26:37:426 12572 1860 Success.
16:26:37:426 12572 1860 Querying the custom task panes.
16:26:37:426 12572 1860 Success.
16:26:37:426 12572 1860 Querying the ribbon extensibility.
16:26:37:426 12572 1860 Success.
16:26:37:427 12572 1860 Querying the form regions.
16:26:37:427 12572 1860 Success.
16:26:37:427 12572 1860 Querying the encryption provider.
16:26:37:427 12572 1860 The 'EncryptionProvider' interface is not supported.
16:26:37:427 12572 1860 Getting the dispid of the 'Dispose' method.
16:26:37:428 12572 1860 Success.
16:26:37:428 12572 1860 Getting the dispid of the 'InitializeLoaderService' method.
16:26:37:428 12572 1860 Success.
16:26:37:428 12572 1860 Invoking the 'InitializeLoaderService' method.
16:26:37:428 12572 1860 Success.
16:26:37:428 12572 1860 The instance of the managed add-in class has been created successfully.


Adxregister.log ---------------------------------
Add-in Express Registrator Log File: 05/22/2018 16:38:06

Installation directory: C:\WINDOWS\Installer\
Registrator version: 9.0.4610.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 16299), 64-bit
Process Owner: Administrator
Command Line: "C:\WINDOWS\Installer\MSI3BB2.tmp" /install="C:\Program Files (x86)\EMCrypt\EMCrypt.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): On
--------------------------------------------------------------
16:38:06 0504 Starting the add-in registration process.
16:38:06 0504 Loading mscoree.dll
16:38:06 0504 Success.
16:38:06 0504 .NET Framework installation directory:
16:38:06 0504 The latest version of .NET Framework: 'v4.0.30319'
16:38:06 0504 Loading CLR: v4.0.30319.
16:38:06 0504 Calling CLRCreateInstance method.
16:38:06 0504 Success.
16:38:06 0504 Calling GetRuntime method.
16:38:06 0504 Success.
16:38:06 0504 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:38:06 0504 The hosting API is up to date.
16:38:06 0504 Calling GetInterface method for the CorRuntimeHost interface.
16:38:06 0504 Success.
16:38:06 0504 Starting CLR...
16:38:06 0504 Success.
16:38:06 0504 Getting the CLR version.
16:38:06 0504 The CLR v4.0.30319 has been initialized successfully.
16:38:06 0504 Creating a new domain setup.
16:38:06 0504 Success.
16:38:06 0504 The 'shadow copy' is disabled.
16:38:06 0504 Creating a new application domain.
16:38:06 0504 Success.
16:38:06 0504 Getting the base directory for the domain.
16:38:06 0504 Success. The directory is 'C:\Program Files (x86)\EMCrypt\'.
16:38:06 0504 Searching for the Add-in Express core library.
16:38:06 0504 Success. The 'AddinExpress.MSO.2005.dll' file is found.
16:38:06 0504 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:38:06 0504 Assembly identity is 'AddinExpress.MSO.2005'.
16:38:06 0504 Success.
16:38:06 0504 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:38:06 0504 Success.
16:38:06 0504 Calling the managed registration procedure (DISPID = 1610743823).
16:38:06 1056 32 bits. The 'HKLM\Software\Microsoft\Office\Outlook\AddIns\EMCrypt.AddinModule' registry key was created successfully for the 'EMCrypt.AddinModule' class: LoadBehavior=3
16:38:06 1056 32 bits. The 'HKCR\CLSID\{01b3a6c7-f020-4634-8e85-807ce190930f}\InprocServer32' registry key was created successfully for the 'EMCrypt.AddinModule' class: mscoree.dll
16:38:06 1056 64 bits. The 'HKLM\Software\Microsoft\Office\Outlook\AddIns\EMCrypt.AddinModule' registry key was created successfully for the 'EMCrypt.AddinModule' class: LoadBehavior=3
16:38:06 1056 64 bits. The 'HKCR\CLSID\{01b3a6c7-f020-4634-8e85-807ce190930f}\InprocServer32' registry key was created successfully for the 'EMCrypt.AddinModule' class: mscoree.dll
16:38:07 0504 Registration success.
16:38:07 0504 The add-in registration process is completed with HRESULT = 0.
Posted 22 May, 2018 10:13:43 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Thomas Lauer writes:
when i now close outlook and restart the checkbox is unchecked.


Reproduce this and look in the adxloader.log file. Does it contain "The instance of the managed add-in class has been created successfully"?


Andrei Smolin
Add-in Express Team Leader
Posted 22 May, 2018 10:32:41 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Andrei Smolin writes:
Reproduce this and look in the adxloader.log file.


Please do this before you enable the add-in.


Andrei Smolin
Add-in Express Team Leader
Posted 22 May, 2018 10:42:01 Top
Thomas Lauer




Posts: 67
Joined: 2011-01-24
i try the following steps

1) i install the addin
--> the adxregistraor.log is available
2) i start outlook
--> i have no adxloader.log
3) i checked the addin in outlook
--> i have no adxloader.log

i seek for the ADXloader in %temp%\{addinname}

Logfiles
https://glshnu-my.sharepoint.com/:f:/g/personal/lauer_glsh_net/Eq_KJ--wKktBgEulNtqryu0B4NeFxW6hq53yCOmiOUc12Q?e=SKeXCZ
Posted 23 May, 2018 03:04:29 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Thomas,

Thomas Lauer writes:
--> i have no adxloader.log


Look in adxloader.dll.manifest and make sure that you don't prevent adxloader.log from creating and do not change its location:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <assemblyIdentity name="MyAddin14, PublicKeyToken=f9f39773da5c568a" />
  <loaderSettings generateLogFile="true" shadowCopyEnabled="false" 
                  privileges="user" configFileName="app.config"
                  minOfficeVersionSupported="{major[.minor]]}"
                  clrVersion="{major[[.minor].build]}">
  <logFileLocation>C:MyLog.txt</logFileLocation>
 </loaderSettings>
</configuration>


If the manifest is okay, check if the add-in is listed in "Disabled Items" or in "Slow and Disabled COM Add-ins".


Andrei Smolin
Add-in Express Team Leader
Posted 23 May, 2018 05:49:07 Top
Thomas Lauer




Posts: 67
Joined: 2011-01-24
My manifest is ok

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <assemblyIdentity name="EMCrypt" imageRuntimeVersion="v4.0.30319" />
  <loaderSettings generateLogFile="true" shadowCopyEnabled="true" privileges="administrator" configFileName="app.config" minOfficeVersionSupported="14" />
</configuration>


no i don?t have the addin in "Disabled Items" or in "Slow and Disabled COM Add-ins".
Posted 23 May, 2018 05:58:04 Top