Add-in loads very slow in Outlook 2010 x86

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

Add-in loads very slow in Outlook 2010 x86
 
Bargholz Thomas




Posts: 236
Joined: 2006-12-18
Hi,

I have an add-in for Outlook 2010. On most computers it runs fine, but for one particular customer, the load time of the add-in is extremely slow (10-12 seconds for the add-in, where everyone else have < 2 seconds for the same).
I've been trying to track down why that particular customer experiences this issue.

I had access to two computers: 1 desktop running Win7 and one server running Win2008r2 and Terminal Services - both had the problem of slow loading.

So far I've found this:

I re-installed my add-in on the server. This fixed the issue on the server. But only for my account. Other accounts still had slow load times.

I re-installed my add-in on the desktop, but that didn't change anything.

I then loaded SysInternals Process Monitor from Microsoft, to see what happens when Outlook starts and loads my add-in. I found that on several occations, it paused for 2 seconds, totaling more than 7 seconds of pausing. All pausing happens immidiately after working with the register key "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" (my add-in does not use that key, so I'm assuming it's something Outlook needs or some inner working of some .NET assembly in my add-in needs).
I wasn't able to Google anything relevant regarding Outlook and that registry key, so I tried to delete it and restart Outlook. This did not change anything, as the keys were just recreated (could be Outlook, could be Windows).
I then disabled my add-in to see if Outlook used the registry keys, or it was only my add-in, and restarted Outlook. Outlook then loaded fast, and I found no reference to the key.
I then enabled my add-in, to see what happens when it's enabled while Outlook is running. This ran fast and did not pause at any time.
I then restarted Outlook (with my add-in enabled), and to my suprise, Outlook loaded fast, and my add-in was loaded in the expected < 2 second timeframe. And I havn't been able to reproduce the slow load times on that desktop (though I havn't tried other users on it).

I will try to see if I can repeat this on the server and possibly on other desktop computers. Or using other users.

Unfortunately I did not save a copy of the adxloader.log file for this computer. I will get one from another computer that display the issues.

As mentioned, the same add-in runs perfectly at all other customers, and with the same OS and Office version, so on the surface there is nothing special about this particular customer.

But do you have any idea to what could have caused the experienced issue? and/or what to look for or configure?

Regards
Thomas
Posted 08 Sep, 2011 07:13:28 Top
Bargholz Thomas




Posts: 236
Joined: 2006-12-18
I logged on with another user on the server, and it was slow (so one user fast, one user slow on the same machine).
This is the content of the adxloader.log:

Add-in Express Loader Log File: 09/08/2011 14:08:15

Startup directory: C:\Program Files (x86)\Lector\TeamShare\2.0\OfficeClient\
Loader version: 6.4.3056.0
Operating System: Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
14:08:15 5980 18928 Start.
14:08:15 5980 18928 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{D8E811A9-25A5-478B-B378-00B4C63FD2C3}'
14:08:15 5980 18928 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{D8E811A9-25A5-478B-B378-00B4C63FD2C3}' is closed.
14:08:15 5980 18928 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Creating a new instance of the add-in loader.
14:08:15 5980 18928 Loading mscoree.dll
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Loading the configuration from the system registry.
14:08:15 5980 18928 Getting the latest CLR version.
14:08:15 5980 18928 The latest CLR version is 'v4.0.30319'.
14:08:15 5980 18928 The configuration has been loaded successfully.
14:08:15 5980 18928 Runtime version: v2.0.50727.
14:08:15 5980 18928 Assembly name: Lector.TeamShare.Office.AddIns, PublicKeyToken=DF9136BD9F3D65DB.
14:08:15 5980 18928 Class name: Lector.TeamShare.Office.AddIns.OfficeAddIn.
14:08:15 5980 18928 Registry key: CLSID\{D8E811A9-25A5-478B-B378-00B4C63FD2C3}.
14:08:15 5980 18928 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
14:08:15 5980 18928 Loading CLR: v2.0.50727.
14:08:15 5980 18928 Calling CLRCreateInstance method.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Calling GetRuntime method.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Calling GetInterface method.
14:08:15 5980 18928 Calling GetInterface method for the CorRuntimeHost interface.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Starting CLR...
14:08:15 5980 18928 Success.
14:08:15 5980 18928 The CLR v2.0.50727 has been initialized successfully.
14:08:15 5980 18928 Creating a new domain setup.
14:08:15 5980 18928 Success.
14:08:15 5980 18928 Getting the add-in directory.
14:08:15 5980 18928 Success. The directory is 'C:\Program Files (x86)\Lector\TeamShare\2.0\OfficeClient\'
14:08:15 5980 18928 The configuration file is ''
14:08:15 5980 18928 The 'shadow copy' is enabled.
14:08:15 5980 18928 Creating a new application domain.
14:08:15 5980 18928 Success.
14:08:25 5980 18928 Unwrapping the managed class.
14:08:39 5980 18928 Success.
14:08:39 5980 18928 Querying the add-in extensibility.
14:08:39 5980 18928 Querying the custom task panes.
14:08:39 5980 18928 Querying the ribbon extensibility.
14:08:39 5980 18928 Success.
14:08:39 5980 18928 Querying the form regions.
14:08:39 5980 18928 Success.
14:08:39 5980 18928 Getting the dispid of the 'Dispose' method.
14:08:39 5980 18928 Success.
14:08:39 5980 18928 The managed add-in class has been created successfully.

Regards
Thomas
Posted 08 Sep, 2011 07:27:02 Top
Bargholz Thomas




Posts: 236
Joined: 2006-12-18
Interesting: I then restarted Outlook, and now it was fast (< 2 sec again).
Not sure what happened here, but it is now fast for both users.
I will continue investigating, but all hits, suggestions and ideas are welcome.
Posted 08 Sep, 2011 07:28:44 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Posted 08 Sep, 2011 08:09:02 Top
Bargholz Thomas




Posts: 236
Joined: 2006-12-18
Hi Eugene,
it was the check for publisher's certificate revocation setting that was the issue. Thanks for the help :-)
Regards
Thomas
Posted 08 Sep, 2011 14:13:37 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
You are welcome, Thomas! ;-)
.NET, Extended MAPI, Windows Phone & RT
Posted 09 Sep, 2011 01:36:51 Top