Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / April 2007

Tip: Looking for answers? Try searching our database.

Outlook AddIn is not loading when launching outlook from C# Win AP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sreehari - 22 Apr 2007 18:40 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.