none
Outlook Add-in disabled by an error in ClickOnce auto-update RRS feed

  • Question

  • Hi,

    We are having an error that rarely occurs on the ClickOnce auto-update feature with our Outlook Addin wherein the Addin gets disabled when this error happens. The changes made with the latest release of our Add-in were on the source code only. We did not change anything from the trust center settings in Outlook and we have a valid certificate for our Add-in. By the time when ClickOnce auto-update dialog appeared and disabled the Add-in, the Add-in was already up-to-date (latest version) a day before, and we didn't change any file from the Installation Folder URL (Web) since then. Another thing is that our Add-in only updates during Outlook start-up (configured in Publish > Updates...) so why will ClickOnce auto-update dialog suddenly appears when Outlook has already been running for an hour or so and then disables our Add-in. We have VSTO Runtime version 10.0.40820 (latest version) installed on our users' PC, Outlook is version 14.0.7106.5003 (64-bit) Part of Microsoft Office Professional Plus 2010 / Outlook version 15.0.4551.1511 (64-bit) Part of Microsoft Office Professional Plus 2013, and .Net Framework 4.0 / .Net Framework 4.5.

    Here is the error that we got from the Event Viewer:

    Customization URI: http://**********.net/ftp/******/********/

    Exception: Customization could not be loaded because the application domain could not be created.

    ************** Exception Text **************

    Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateCustomizationDomainException: Customization could not be loaded because the application domain could not be created. ---> System.NullReferenceException: Object reference not set to an instance of an object.

       at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.GetAssemblyDataFromManifests(String solutionLocation, String manifestLocator, String documentName, Boolean showUIDuringDeployment, CustomizationType customizationType, OfficeVersion officeVersion, IHostServiceProvider interopServiceProvider)

       at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)

       --- End of inner exception stack trace ---

    ************** Loaded Assemblies **************

    mscorlib

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18052 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Office.Runtime

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.40820.0

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll

    ----------------------------------------

    System.Core

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

    ----------------------------------------

    System

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.Hosting

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.40820.0

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.ServerDocument

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.40820.0

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll

    ----------------------------------------

    Microsoft.VisualStudio.Tools.Applications.Runtime

        Assembly Version: 10.0.0.0

        Win32 Version: 10.0.40820.0

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll

    ----------------------------------------

    System.Windows.Forms

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18036 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

    ----------------------------------------

    System.Drawing

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

    ----------------------------------------

    System.Deployment

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

    ----------------------------------------

    System.Configuration

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

    ----------------------------------------

    System.Xml

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

    ----------------------------------------

    System.Xml.Linq

        Assembly Version: 4.0.0.0

        Win32 Version: 4.0.30319.17929 built by: FX45RTMREL

        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

    Please help.

    Thanks,

    Benjamin

    Wednesday, January 29, 2014 12:31 AM

Answers

  • Hi,

    According to your description, you got an error when you update the add-in automatically.
    I created a sample add-in project and publish it to a website, and then set the update option like figure below:

     
    When I publish a new version of add-in, the add-in updated successfully. Did you get the error in the development environment?

    I suggest you creating a simple sample project to see whether this issue is caused by custom code.

    In addition, I found a relative article about the exception:
    Troubleshooting common VSTO issues

    Best regards
    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, January 29, 2014 9:44 AM
    Moderator

All replies

  • Hi,

    According to your description, you got an error when you update the add-in automatically.
    I created a sample add-in project and publish it to a website, and then set the update option like figure below:

     
    When I publish a new version of add-in, the add-in updated successfully. Did you get the error in the development environment?

    I suggest you creating a simple sample project to see whether this issue is caused by custom code.

    In addition, I found a relative article about the exception:
    Troubleshooting common VSTO issues

    Best regards
    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, January 29, 2014 9:44 AM
    Moderator
  • Hi,

    Since we haven't heard from you for a long time, I temporarily close this case. I mark useful reply as answer. If you have any concerns, please free feel to reopen it or submit a new question.

    Thanks for your understanding.

    Best regards

    Fei 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, February 6, 2014 7:01 AM
    Moderator