VSTO uses the StartupComplete event to fire its startup event. If other code
is holding Outlook open you won't get a new StartupComplete event and
therefore the VSTO addin won't start up again.
There are workarounds that can be used from VB.NET or C# shared addins but
none that I know of for VSTO addins.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Sanjay" wrote in message
oups.com...
Dmitry,
Thanks for your quick response...
It seems the application_startup event is not fired when the first
app is launched. This app establishes a mapi session and reads email
from the default profile. Then when user launches Outlook, the
Application_startup event in the VSTO plugin is fired. Then when the
user closes outlook, Application_Shutdown event is fired. Then when
the user restarts it, the application_startup event is ignored.
I am using VS2005 + VSTO + C# + Outlook 2003 SP2 (11.8030.8107).
Is there a way around this issue?
Sanjay