none
Outlook addin on a network drive gets turned off automaticly when no network. RRS feed

  • Question

  • I have an outlook addin which is located on the network drive for all users to use.

    When network fails may it be because of a cable that plugged out, or a system issue, if at that time, the user launches Outlook (when no network is available), outlook automatically ticks off the addin out of usage.

    When network comes back on, the user needs to manually enable the addin via the options in order for it to become enabled and visible again.

    Setting the registry value to never disable the addin, isn't effective here, because the addin is not realy disabled, its only been shut off and waiting to be reactivated manually.

    I would like it to stop being shut off, or at least auto-enable it self when network is accessible. can this be accomplished without an 3rd party exe running in the background ?

    Sunday, July 26, 2015 7:38 PM

Answers

  • Hello Stum,

    Use the a local folder instead for add-in installations. 

    No, the Outlook extensibility model doesn't provide anything for that. Moreover, I don't think a network share is an appropriate place for keeping add-in files. The fact is that Outlook 2013 monitors add-in performance metrics such as add-in startup, shutdown, folder switch, item open, and invoke frequency. Outlook records the elapsed time in milliseconds for each performance monitoring metric. 

    For example, the startup metric measures the time required by each connected add-in during Outlook startup. Outlook then computes the median startup time over 5 successive iterations. If the median startup time exceeds 1000 milliseconds (1 second), then Outlook disables the add-in and displays a notification to the user that an add-in has been disabled. The user has the option of always enabling the add-in, in which case Outlook will not disable the add-in even if the add-in exceeds the 1000 millisecond performance threshold. Read more about that in the Performance criteria for keeping add-ins enabled article in MSDN.

    Also Microsoft Office applications can disable VSTO Add-ins that behave unexpectedly. If an application does not load your VSTO Add-in, the application might have hard disabled or soft disabled your VSTO Add-in.

    Hard disabling can occur when an VSTO Add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your VSTO Add-in is executing.

    Soft disabling can occur when a VSTO Add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing.

    When you re-enable a soft-disabled VSTO Add-in, the application immediately attempts to load the VSTO Add-in. If the problem that initially caused the application to soft disable the VSTO Add-in has not been fixed, the application will soft disable the VSTO Add-in again. Read more about that in the How to: Re-enable a VSTO Add-in That Has Been Disabled article.

      
    Sunday, July 26, 2015 8:25 PM