Hi
I am having a problem in launching the outlook application using from a C#
application.
I have created an outlook addin and created a setup. (VSTO 2005)
I installed the setup. Now when I launch outlook, the addin is getting
loaded properly.
But when I try to launch outlook (2003) from the click of a button of
another C# windows form, the outlook does not load the addin. It sets the
loadbehaviour value in the registry to 2.
There should not be a problem with the code in the addin-as if that was teh
case, the standalone outlook should have also failed.
Is it something to do with security ??
Here is the code snippet I am using.
Microsoft.Office.Interop.Outlook.ApplicationClass app = new
Microsoft.Office.Interop.Outlook.ApplicationClass();
app.GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderCalendar).Display();
It's launching outlook application properly, but, AddIn was not loaded.
Any help will be apprecaited
Ken Slovak - [MVP - Outlook] - 22 Apr 2007 22:02 GMT
What does your Startup code look like?
Are you checking for Explorers in it?
What happens if you set up a NewExplorer handler (Explorers collection)?
This is VSTO 2005 and not 2005 SE?

Signature
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
> Hi
>
[quoted text clipped - 26 lines]
>
> Any help will be apprecaited