Hi,
it seems that this issue has been the topic of many threads (e.g. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=576370&SiteID=1). However, I couldn't find any hint on how to solve this problem.
How to reproduce:
1. Put a "MessageBox.Show()" or a "File.WriteAllText()" in the startup event handler method.
2. Run any application that starts Outlook in the background. The message or the file won't show up. However, the addin's LoadBehavior is set to two.
3. Fire up Outlook (UI) and check the addin state (Tools > Options > Other ...). It's not loaded due to some error.
4. Close Outlook (UI) and close the application that initially started Outlook in the background. The process "outlook.exe" won't shut down and has to be killed manually.
Conclusion:
The addin loader seems to cause the error when Outlook is launched with no UI because the addin code never seems to get called. Moreover, it seems to hold some resources that prevents "outlook.exe" from being terminated.
Question:
Could the conclusion be correct If not, is there any reasonable explanation for this behavior Is there a workaround or a fix for it Please let me know!
Current Setup:
Windows XP SP2
Outlook 2003
VSTO 2005 SE
Many thanks!
Florian