(OneNote 2013) OneNote.Window.Application interface doesn't work RRS feed

  • Question

  • Our OneNote 2010 addin works well, but fails on OneNote 2013.  The problem is when it try to access interface:

        // OneNote.Window win was set before

           = win.Application;
                catch (Exception e)
                    string s = e.Message;

    The error message is:


    "Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.OneNote.IApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A47D3223-06A5-3DD6-916F-50E803E0AFC2}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."

    Office team, please help!

    Wednesday, March 13, 2013 9:26 PM

All replies