Add-In Loads Very Slow Office 2007

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

Add-In Loads Very Slow Office 2007
 
Kevin Smet


Guest


Hi,

Our add-in that we developed loads very slow. It's on a 64bit Windows Server 2008 R2 Standard with 15 GB RAM. Citrix is installed on it.
Office version 2007 (12.0.6545.5000) with SP2 MSO (12.0.6545.5004)

This is the adxregistrator.txt file:

Add-in Express Registrator Log File: 03/07/2011 11:18:45

Installation directory: C:\Program Files (x86)\Syneton\Admin-DMS\
Registrator version: 6.3.3052.0
Operating System: Microsoft Windows Server 2008 R2 Standard Edition (build 7600), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Syneton\Admin-DMS\adxregistrator.exe" /install="Admin-DMS Office AddOn.dll" /privileges=user
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
--------------------------------------------------------------
11:18:45 Starting the add-in registration process.
11:18:45 Loading mscoree.dll
11:18:45 Success.
11:18:45 .NET Framework installation directory:
11:18:45 The latest version of .NET Framework: 'v2.0.50727'
11:18:45 Loading CLR: v2.0.50727.
11:18:45 Calling CLRCreateInstance method.
11:18:45 Failed.
11:18:45 The loader will try to use the old Framework API.
11:18:45 The CLR v2.0.50727 has been initialized successfully.
11:18:45 Creating a new domain setup.
11:18:45 Success.
11:18:45 Getting the add-in directory.
11:18:45 Success. The directory is 'C:\Program Files (x86)\Syneton\Admin-DMS\'
11:18:45 The 'shadow copy' is disabled.
11:18:45 Creating a new application domain.
11:18:45 Success.
11:18:45 Getting the base directory for the domain.
11:18:45 Success. The directory is 'C:\Program Files (x86)\Syneton\Admin-DMS\'.
11:18:45 Searching for the Add-in Express core library.
11:18:45 Success. The 'AddinExpress.MSO.2005.dll' file is found.
11:18:45 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
11:18:45 Assembly identity is 'AddinExpress.MSO.2005'.
11:19:01 Success.
11:19:01 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
11:19:01 Success.
11:19:01 Calling the managed registration procedure.
11:19:01 7620 Connecting to the application domain of the Add-in Express loader.
11:19:01 7620 Success.
11:19:01 7620 Loading the 'admin-dms office addon.dll' assembly.
11:19:01 7620 Success.
11:19:01 7620 Registering the 'admin-dms office addon.dll' assembly (user).
11:19:01 7620 The ' admin-dms office addon.dll' assembly has been registered successfully.
11:19:01 Success.
11:19:01 The add-in registration process is completed with HRESULT = 0.


This is the adxloader.txt file:

Add-in Express Loader Log File: 03/07/2011 11:19:09

Startup directory: C:\Program Files (x86)\Syneton\Admin-DMS\
Loader version: 6.0.3043
------------------
11:19:09 880 18108 Start.
11:19:09 880 18108 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{6EF3FE7F-F0F1-4C5F-8608-F80EC9F012BC}'
11:19:09 880 18108 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{6EF3FE7F-F0F1-4C5F-8608-F80EC9F012BC}' is closed.
11:19:09 880 18108 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
11:19:09 880 18108 Success.
11:19:09 880 18108 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
11:19:09 880 18108 Success.
11:19:09 880 18108 Creating a new instance of the add-in loader.
11:19:09 880 18108 Success.
11:19:09 880 18108 Loading the configuration from the system registry.
11:19:09 880 18108 Getting the latest CLR version.
11:19:09 880 18108 The latest CLR version is 'v2.0.50727'.
11:19:09 880 18108 The configuration has been loaded successfully.
11:19:09 880 18108 Runtime version: v2.0.50727.
11:19:09 880 18108 Assembly name: Admin-DMS Office AddOn, PublicKeyToken=A11E0E89156D37C8.
11:19:09 880 18108 Class name: Syneton.WinDevelopment.AdminDMS.OfficeAddOn.AddinModule.
11:19:09 880 18108 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
11:19:09 880 18108 Loading CLR: v2.0.50727.
11:19:09 880 18108 Calling GetCLRMetaHost method.
11:19:09 880 18108 Failed.
11:19:09 880 18108 The loader will try to use the old Framework API.
11:19:09 880 18108 The CLR v2.0.50727 has been initialized successfully.
11:19:09 880 18108 Creating a new domain setup.
11:19:09 880 18108 Success.
11:19:09 880 18108 Getting the add-in directory.
11:19:09 880 18108 Success. The directory is 'C:\Program Files (x86)\Syneton\Admin-DMS\'
11:19:09 880 18108 The configuration file is 'C:\Program Files (x86)\Syneton\Admin-DMS\app.config'
11:19:09 880 18108 The 'shadow copy' is enabled.
11:19:09 880 18108 Creating a new application domain.
red
11:19:24 880 18108 Success.
11:19:24 880 18108 Querying the add-in extensibility.
11:19:24 880 18108 Querying the custom task panes.
11:19:24 880 18108 Querying the ribbon extensibility.
11:19:24 880 18108 Success.
11:19:24 880 18108 Querying the form regions.
11:19:24 880 18108 Success.
11:19:24 880 18108 Getting the dispid of the 'Dispose' method.
11:19:24 880 18108 Success.
11:19:24 880 18108 The managed add-in class has been created successfully.

I don't know what the problem is. There are other customers with the same configuration, and they don't have any problem with the add-in.

Thanks
Kevin
Posted 07 Mar, 2011 04:45:38 Top
Eugene Astafiev


Guest


Hi Kevin,

Thank you for providing me with the log files. I have noticed the following lines on my way:

Loader version: 6.0.3043


It looks like you use an old build of the adxloader.dll in the Loader folder of your project (see the Redistributables folder for the new one).

Is the http://office.microsoft.com/en-us/office-2003-resource-kit/how-office-performs-certificate-revocation-HA001140308.aspx enabled on your PC?
Posted 07 Mar, 2011 05:26:59 Top
Kevin Smet


Guest


Hi Eugene,

I replaced the adxloader.dll with a newer one : 6.3.3052.0
But that didn't help. The Certificate Revocation is off... I did that already before posting my question, because I know this could be the problem.. but it's not.

I want to send you the new log file.. but there is no adxloader.txt file created anymore.
Any other ideas?

Thanks.
Kevin
Posted 07 Mar, 2011 09:13:56 Top
Eugene Astafiev


Guest


Hi Kevin,

It looks like your add-in has fallen to the Disabled Items list. Please read more about this in the http://www.add-in-express.com/docs/net-tips.php#disabled-items on our web site. Are you able to reproduce the issue with a newly created add-in project?
Posted 07 Mar, 2011 09:45:37 Top
Kevin Smet


Guest


Hi Eugene,

No, the add-in is not in the Disabled Items list. The add-in works, but loads very slow as said, and there is nog adxloader.txt created.

Kevin
Posted 07 Mar, 2011 10:10:30 Top
Eugene Astafiev


Guest


Hi Kevin,

The add-in works, but loads very slow as said, and there is nog adxloader.txt created.


It is impossible. The log is created when the host loads your add-in.
Posted 07 Mar, 2011 10:52:51 Top
Luke Terry




Posts: 24
Joined: 2010-10-28
In my experience it's something to do with the environment.
Are you saying that when you start Outlook you have to wait a while before your add-in actually appears? Or is it at the splash-screen phase.

Chances are you're doing some heavy lifting on the main thread, any IO-bound or CPU intensive work during the start-up or initialization of your add-in?
Posted 07 Mar, 2011 11:31:05 Top
Eugene Astafiev


Guest


Thank you for sharing your knowledge, Luke!
Posted 07 Mar, 2011 11:35:07 Top
Kevin Smet


Guest


Eugene Astafiev wrote:
Hi Kevin,

Quote
The add-in works, but loads very slow as said, and there is nog adxloader.txt created.


It is impossible. The log is created when the host loads your add-in.


I know the log is created every time... that's the strangest thing, it isn't and the plugin is working.

Luke Terry wrote:
In my experience it's something to do with the environment.
Are you saying that when you start Outlook you have to wait a while before your add-in actually appears? Or is it at the splash-screen phase.

Chances are you're doing some heavy lifting on the main thread, any IO-bound or CPU intensive work during the start-up or initialization of your add-in?


The problem is with Word, Excel, Outlook... when Word starts, the splash screen is working normal, it's when Word is building the ribbon that it takes some time. Only in Outlook I'm attaching OutlookEvents during the AddinModule_AddinStartupComplete. In Word or Excel I'm doing nothing, just showing the button, and all the other code happens when you click the button. We have a lot of customers using the product, and the same version. It's only happening with one customer... Strange.

Thanks
Kevin
Posted 07 Mar, 2011 18:01:42 Top
Eugene Astafiev


Guest


Hi Kevin,

Could you please share the problematic PC to me?
Posted 08 Mar, 2011 04:58:27 Top