The problem scenario is a bit complicated so please be patient with me.
Steps to repro:
0). Have a Outlook addin. When it's loaded, make sure it calls NameSpace.GetDefaultFolder.
1). Configure Outlook 2002 so that it uses manual connection and choose the connection type at startup;
2). Start a Word document. On the file menu, click on "Send to". It's supposed to start the Outlook.
3). When the Outlook starts, it pops up a message box saying how do you want to connect to exchange server: Connect, work offline, or cancel.
4). Click on cancel, then it hangs.
This problem only happens on Outlook 2002 since Outlook 2000 doesn't have cancel button.
What happened is that when the outlook loads the addin and executes the GetDefaultFolder, it invokes the connection Dialog Box. If you select cancel, it's stuck in the function and never returns.
If you starts the Outlook by itself, it won't have this problem since the connection box pops up before the addin is loaded.
Part of my question is that if there is a way to programmetically invoke the connection dialog box.
Your help is much appreciated.