This addition has caused prospects to start slowly.

I am developing an Outlook Addin project using C # .NET 4.5, but after I deploy, sometimes Outlook shuts down my application and displays this message. “This add-on caused prospects to start slowly.” “I don’t know what happened with my add-on. It has only a few codes, and ThisAddIn_Startup is empty in this project. Here is the code ...

   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);
   }

   #endregion
   }


   <?xml version="1.0" encoding="UTF-8"?>
  <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"         önLoad="Ribbon_Load">
   <contextMenus>
   <contextMenu idMso="ContextMenuContactItem">
     <menuSeparator id="mniMailItemMenuSeparator" />
     <button id="customButton"
            label="Call using Software"   insertBeforeQ="Copy"
          imageMso="Call"
           önAction="OnMyButtonClick" />

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

         imageMso="Call"
           önAction="MailItemCallNumbers"   />

   </contextMenu>
  </contextMenus>

 </customUI>
+4
source share
4 answers

, . , , , , Outlook "" .

, . outlook, .

+4

Outlook 2013, Microsoft . . http://msdn.microsoft.com/en-us/library/office/jj228679.aspx#ol15WhatsNew_AddinDisabling

Outlook .Net . COM , .Net.

( " " , , , () .

, Outlook , " " ( ), .

HKCU\Software\Microsoft\Office\15.0\Outlook\Resiliency\DoNotDisableAddinList

VTSO . ,

. CLR Office.

+7

, , - , .

: " , , ". , , .

"" "" → "" → " " → " ". "" " " . "VSTO_SUPPRESSDISPLAYALERTS" 0 (Zero). .

enter image description here

, , Outlook. , "", "". .

enter image description here

0

Source: https://habr.com/ru/post/1532473/


All Articles