Just a plain startup on a PC where Office in installed by Software Center (SCCM).
File Desktop\PowerToysReport_2024-03-12-09-05-10.zip\PowerToys Run\Logs\0.79.0.0\2024-03-12.txt
contains the following message:
[2024-03-12 09:03:37.3325] [ERROR] [C:\a\_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::239]
-------------------------- Begin exception --------------------------
Message: Fail to Init plugin: OneNote
Exception full name : System.InvalidCastException
Exception message : Unable to cast COM object of type 'Microsoft.Office.Interop.OneNote.ApplicationClass' to interface type 'Microsoft.Office.Interop.OneNote.IApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{452AC71A-B655-4967-A208-A4CC39DD7949}' failed due to the following error: Interface not registered (0x80040155).
Exception stack trace:
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.OneNote.ApplicationClass.GetHierarchy(String bstrStartNodeID, HierarchyScope hsScope, String& pbstrHierarchyXmlOut, XMLSchema xsSchema)
at ScipBe.Common.Office.OneNote.OneNoteProvider.<>c.<get_PageItems>b__3_0(Application oneNote)
at ScipBe.Common.Office.OneNote.OneNoteProvider.CallOneNoteSafely[T](Func`2 action)
at ScipBe.Common.Office.OneNote.OneNoteProvider.get_PageItems()
at Microsoft.PowerToys.Run.Plugin.OneNote.Main.Init(PluginInitContext context)
at Wox.Plugin.PluginPair.InitPlugin(IPublicAPI api)
Exception source : System.Private.CoreLib
Exception target site: IntPtr GetCOMIPFromRCW(System.Object, IntPtr, IntPtr ByRef, Boolean ByRef)
Exception HResult : -2147467262
-------------------------- End exception --------------------------
✔️ Expected Behavior
Start without error msgbox.
❌ Actual Behavior
Error msgbox is shown, saying
---------------------------
Fail to initialize plugins
---------------------------
Fail to initialize plugins
---------------------------
OK
---------------------------
followed by another one saying
---------------------------
PowerToys Run - Plugin Loading Error
---------------------------
Fail to load plugin: OneNote
Please report the bug to https://aka.ms/powerToysReportBug. (For third-party plugins, please contact the plugin author.)
---------------------------
OK
---------------------------
Other Software
Microsoft® OneNote® for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20124) 32-bit
Microsoft PowerToys version
0.79.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Just a plain startup on a PC where Office in installed by Software Center (SCCM).
File Desktop\PowerToysReport_2024-03-12-09-05-10.zip\PowerToys Run\Logs\0.79.0.0\2024-03-12.txt contains the following message:
✔️ Expected Behavior
Start without error msgbox.
❌ Actual Behavior
Error msgbox is shown, saying
followed by another one saying
Other Software
Microsoft® OneNote® for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20124) 32-bit