RequestService problem when re-enabling an add-in in the COM Add-Ins screen RRS feed

  • Question

  • I have an outlook plugin and in my override of RequestService i create a new instance of my Ribbon class and return it whcih works fine.

    protected override object RequestService(Guid serviceGuid)
                if (serviceGuid == typeof(IRibbonExtensibility).GUID)
                    if (_ourRibbon == null)
                        _ourRibbon = new SYNETYRibbon();
                    return _ourRibbon;
                return base.RequestService(serviceGuid);

    However, if the add-in becomes disabled and the user re-enables it from the manage COM Add-Ins screen RequestService doesn't get called and then i don't have a reference to my Ribbon in the Startup method.

    Anyone come across this and know how to get outlook to make a call to RequestService or have a workaround?

    Friday, February 24, 2012 12:15 PM

All replies