Add-in doesn't load on Outlook startup with .NET 4 beta 2

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

Add-in doesn't load on Outlook startup with .NET 4 beta 2
 
Tomas Kafka




Posts: 24
Joined: 2009-07-16
Hi, I have installed .NET framework 4 beta 2, and since that, the outlook adx addin does not start when outlook is started.

I have to go to Trust Center, uncheck my addin in COM addins section (it is there, checked, with no error message), close the dialog, then go back again and check my addin again, and click OK, and at that moment the addin starts loading and runs.

The addin's target .NET version is 3.5.

I have added OUTLOOK.EXE.config to force the older .NET framework version:

<?xml version="1.0"?>
<configuration>
	<startup>
		<supportedRuntime version="v2.0.50727" sku="client"/>
	</startup>
</configuration>


This is my adxloader.log:


Add-in Express Loader Log File: 10/26/2009 02:53:14

Startup directory: D:my_addin_pathin†Debug
Loader version: 5.0.2022 
------------------
02:53:14 5012 3196 Start.
02:53:14 5012 3196 Reading the registry key 'HKEY_CLASSES_ROOTCLSID{7405F310-2BCD-49A9-B2E7-990F25BDAD71}'
02:53:14 5012 3196 Success. The registry key 'HKEY_CLASSES_ROOTCLSID{7405F310-2BCD-49A9-B2E7-990F25BDAD71}' is closed.
02:53:14 5012 3196 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
02:53:14 5012 3196 Success.
02:53:14 5012 3196 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
02:53:14 5012 3196 Success.
02:53:14 5012 3196 Creating a new instance of the add-in loader.
02:53:14 5012 3196 Success.
02:53:14 5012 3196 Loading the configuration from the system registry.
02:53:14 5012 3196 Getting the latest CLR version.
02:53:14 5012 3196 The latest CLR version is 'v4.0.21006'.
02:53:14 5012 3196 The configuration has been loaded successfully.
02:53:14 5012 3196     Runtime version: v2.0.50727.
02:53:14 5012 3196     Assembly name: TaskConnect.
02:53:14 5012 3196     Class name: TaskConnect.AddinModule.
02:53:14 5012 3196 Attempting to create a new instance of the managed add-in class: CLR - v4.0.21006
02:53:14 5012 3196 Loading CLR: v4.0.21006.
02:53:14 5012 3196 The CLR v2.0.50727 has been initialized successfully.
02:53:14 5012 3196 WARNING: The .NET Framework version loaded differs from that reqired by the assembly.

Notice the time difference - here is when I go to Trust Center and disable/enable the addin.

02:53:48 5012 3196 Start.
02:53:48 5012 3196 Reading the registry key 'HKEY_CLASSES_ROOTCLSID{7405F310-2BCD-49A9-B2E7-990F25BDAD71}'
02:53:48 5012 3196 Success. The registry key 'HKEY_CLASSES_ROOTCLSID{7405F310-2BCD-49A9-B2E7-990F25BDAD71}' is closed.
02:53:48 5012 3196 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Creating a new instance of the add-in loader.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Loading the configuration from the system registry.
02:53:48 5012 3196 Getting the latest CLR version.
02:53:48 5012 3196 The latest CLR version is 'v4.0.21006'.
02:53:48 5012 3196 The configuration has been loaded successfully.
02:53:48 5012 3196     Runtime version: v2.0.50727.
02:53:48 5012 3196     Assembly name: TaskConnect.
02:53:48 5012 3196     Class name: TaskConnect.AddinModule.
02:53:48 5012 3196 Attempting to create a new instance of the managed add-in class: CLR - v4.0.21006
02:53:48 5012 3196 Creating a new domain setup.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Getting the add-in directory.
02:53:48 5012 3196 Success. The directory is 'D:my_addin_pathin†Debug'
02:53:48 5012 3196 The configuration file is 'D:my_addin_pathin†DebugApp.config'
02:53:48 5012 3196 The 'shadow copy' is enabled.
02:53:48 5012 3196 Creating a new application domain.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Unwrapping the managed class.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Querying the add-in extensibility.
02:53:48 5012 3196 Querying the custom task panes.
02:53:48 5012 3196 Querying the ribbon extensibility.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 Querying the form regions.
02:53:48 5012 3196 Success.
02:53:48 5012 3196 The managed add-in class has been created successfully.


I am perplexed by the line:
02:53:14 5012 3196 Attempting to create a new instance of the managed add-in class: CLR - v4.0.21006
- without .NET 4, the v2.0.50727 was here instead and the addin starded allright.

Could you please investigate? Thank you!
Posted 25 Oct, 2009 21:43:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7229
Joined: 2004-07-05
Hi Tomas.

We don't recommend to install .NET Beta 2 as we are not able to track all changes in the hosting API of .NET Framework immediately.

As to the warning in the log, please try to install the latest version of Add-in Express and then download the latest build of the adxloader.dll here:
http://www.add-in-express.com/projects/beta2fix/adxloader.zip
You need to replace the public version of the loader with a new one provided by the link above. Please let me know if the issue still exists.
Posted 26 Oct, 2009 06:33:54 Top
Tomas Kafka




Posts: 24
Joined: 2009-07-16
Hi Sergey, excellent - the new adxloader works flawlessly on our .net 4 b2 machines. Thank you!
Posted 26 Oct, 2009 15:24:22 Top