views:

153

answers:

1

Hi, I have an annoying problem. I have a VSTO 2 plugin for Outlook 2003 (written with VS2005). I simply create 2 buttons that save email objects and work on emails.

The problem is that the plugin, when just installed, is loaded by outlook and it works, but when I reboot the plugin is no more automatically loaded. I must re-enable it from outlook's addin properties to see it again. If I reinstall the plugin after reboot, (most of the times) it is again automatically loaded (till next reboot).

What could be the problem?

A: 

The best way I have found to diagnose unhandled vsto exceptions is do the following:

-Open a command window -type in "Set VSTO_SUPPRESSDISPLAYALERTS = 1" -type in "VSTO_LOGALERTS = 1" run outlooks executable from its install location using the same command window. In this manner I found my issue with an excel add in (it pops up a window instead of eating the error)

Codezy