Reputation: 649
I have a very strange problem with an AddIn I developed.
Clients complain of the AddIn being disabled by outlook because of slow loading times but in my code (1.2s on avrg), I don't have any other custom codes running during start up apart from AddIn Express generated code which can be seen below.
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
logger.Debug("Startup called");
this.AddInStartup();
#region Add-in Express Regions generated code - do not modify
this.FormsManager = AddinExpress.OL.ADXOlFormsManager.CurrentInstance;
this.FormsManager.OnInitialize += new AddinExpress.OL.ADXOlFormsManager.OnComponentInitialize_EventHandler(this.FormsManager_OnInitialize);
this.FormsManager.Initialize(this);
#endregion
logger.Debug("Exit Startup");
}
Also, I have a ribbon Ribbon (Button), that gets loaded.
All functionality codes for the addIn such as login, webservice calls are only performed when outlook is opened with the Ribbon button clicked.
Are there any underlying issues i may have looked past or possible external reasons not related to my code where outlook will complain of my addIn starting up slow when all that happens is just the ribbon being loaded during outlook start time ?
Upvotes: 1
Views: 1774
Reputation: 49395
There are multiple reasons why your add-in starts slowly....
But the very first thing to start with is to remove any Add-in Express code and see how much time it takes to load. Do you get the same picture with a newly created add-in project without Add-in Express assemblies?
I'd suggest applying common approaches for increasing the overall add-in performance such as:
See Application Startup Time for more information. Also take a look at tje following pages:
Upvotes: 3