Click here to Skip to main content
15,843,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am developing an Outlook Addin Project using C#.NET 4.5
But After I deploy, Sometimes outlook disables my addin, and shows this message.
"This addin caused outlook to start slowly"" I dont know whats wrong with my addin.
This has only a few codes, and ThisAddIn_Startup is empty in this project.
Here is the code...

<pre lang="cs">public partial class ThisAddIn
       private void ThisAddIn_Startup(object sender, System.EventArgs e)


       private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
       protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
           return new Ribbon1();

       #region VSTO generated code

       /// <summary>
       /// Required method for Designer support - do not modify
       /// the contents of this method with the code editor.
       /// </summary>
       private void InternalStartup()
           this.Startup += new System.EventHandler(ThisAddIn_Startup);
           this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);


<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns=""  önLoad="Ribbon_Load">
    <contextMenu idMso="ContextMenuContactItem">
      <menuSeparator id="mniMailItemMenuSeparator" />
      <button id="customButton"
              label="Call using Software"   insertBeforeQ="Copy"
               önAction="OnMyButtonClick" />

    <contextMenu idMso="ContextMenuMailItem">
      <menuSeparator id="mailmenusep1" />
      <button id="mailbutton" insertBeforeQ="Copy"
              label="Call using Software"
               önAction="MailItemCallNumbers"   />



This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900