"ActiveInspector" is always null

Add-in Express™ Support Service
That's what is more important than anything else

"ActiveInspector" is always null
The "ActiveInspector" is always null and I cannot access the CurrentItem. 
Stefanie Ewald

Posts: 1
Joined: 2020-03-13
Hi there,

we migrated from Windows 7 to 10 and from Office 2010 to Office 2016. We use the latest version of the Add-in Express.
Now our addin doesn't work anymore. The "ActiveInspector" is always null and I cannot access the CurrentItem.

private void LoadContract()
Inspector currInspector = null;
AppointmentItem appointment = null;
MAPIFolder contractFolder = null;
MAPIFolder commandFolder = null;

currInspector = OutlookApplication.ActiveInspector();
appointment = (AppointmentItem)currInspector.CurrentItem;
Posted 16 Mar, 2020 02:13:17 Top
Andrei Smolin

Add-in Express team

Posts: 17361
Joined: 2006-05-11
Hello Stefanie,

I suppose there's something in your code or in environment.

In what Outlook event do you invoke that method?

How OutlookApplication is declared and defined?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Mar, 2020 03:18:06 Top