Attempting to add new explorer event handler (outlook) causes exception
From: Graham (anonymous_at_discussions.microsoft.com)
Date: 03/13/04
- Next message: BobLITC: "After upgrade from Win 98 - XP Prof. Lost Outlook Express emails"
- Previous message: Sue Mosher [MVP-Outlook]: "Re: Sending Outlook invitations from a web application"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 23:36:07 -0800
Hi,
A simple C# Addin,
When invoking
m_outlookapp.Explorers.NewExplorer += new Outlook.ExplorersEvents_NewExplorerEventHandler(newExplorer);
newExplorer is defined as
private void newExplorer(Outlook.Explorer explorer)
{
// .. do something
}
I am getting the following exception:
System.Exception {"No such interface supported" } System.Exception
System.Object {System.InvalidCastException} System.Object
at System.Runtime.InteropServices.UCOMIConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
at Outlook.ExplorersEvents_EventProvider.add_NewExplorer(ExplorersEvents_NewExplorerEventHandler )
at Outlook.ExplorersClass.add_NewExplorer(ExplorersEvents_NewExplorerEventHandler )
at findAddin.Connect.OnStartupComplete(Array& custom)
This is on windows 2000 professional, office 2003, vstudio dev env is 7.0.9466, .Net Framework is 1.0
I am using Outlook and Office 11.0 Object library references. I am not using the XP PIA (primary interop assemblies)
Any help would be most gratefully received,
- graham
- Next message: BobLITC: "After upgrade from Win 98 - XP Prof. Lost Outlook Express emails"
- Previous message: Sue Mosher [MVP-Outlook]: "Re: Sending Outlook invitations from a web application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|