-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Total failure of plugin #1153
Comments
Rename this file %APPDATA%\OneMore\Themes\Default.xml to If it doesn't work, trying renaming %APPDATA%\OneMore\Settings.xml to |
I tried installing a newer .NET Framework so i went with 4.8.1. Restarted, Repaired Office Again, Removed and Reinstalled OneMore and still have the same above issues. It appears to not create the files that you expected it to create. I think it could be an issue with mscorelib. I checked my c:\Windows\Assembly folder, and i have legacy versions of that file/dll but i don't think i have ones that are being harnessed. No amount of google is helping me find a way to replace the file if it is missing. I'm also not sure if it should be in the program files/river directory with all the other .dll files. |
Additional Research: Also, like I mentioned before, there is no mention of mscorlib.dll on my system anywhere, so it could just be that this is missing, but after looking all over the internet, I can't find anyone with a similar issue.
|
It should be here I believe it's the CLSID of the OneNote IApplication interface, which tells me that your OneNote and/or Office installation needs to be repaired (I know you mentioned you tried that though!). OneMore is built using .NET Framework 4.8. You've installed 4.8.1 which should be backwards compatible with OneMore. The mscorlib.dll should be in a few spots including something like |
Thanks for looking into everything with me. I'm kind of at a point of exhausting all my knowledge. I ran the repair again, offline and online, both for Office and OneNote, and still cannot get it to work. |
I found a fix for my issue. In case anyone else has this problem in the future.
|
That's really interesting. I wonder if running the Office installer in repair mode would have caught that. |
No problem, and also just so you know, I did run the repair a few times and it never picked that up or fixed it. Not sure why, but I am also on a domain network. The install we use for 365 products is managed by a part of the IT team, and it could be related to how that installer is being used. The installer is for Glad to have it fixed, thanks for everything, can't wait to finally use this thing. |
Added pre-install verification of OneNote configuration. If any suspect settings are detected, a warning dialog is shown prior to installation. |
Problem to Solve
I was able to download and install the latest version. But as soon as i click on My Styles, or Table Styles (since I've turned on the error popups), it says:
"An exception occurred while calling function "GetStyleGalleryItemCount". The exception message is:
Unable to cast COM object to type 'Microsoft.Office.Interop.OneNote.ApplicationClass' to interface type 'Microsoft.Office.Interop.OneNote.IApplicationCOM'. 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))."
After clicking okay, I can now see the menu next time i click on the dropdown, but nothing functions. Checking the logs, i have more of the same style errors.
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
To be able to open the menu's without error. To be able to click on menu options and see other parts of the addon. I can't even click Settings or About OneMore, because nothing happens.
Environment (if applicable)
Additional Context
I have reviewed and seen some similar errors, but none were exactly the same. Either way I've done the following testing:
Still getting the same error.
01| Starting dllhost 14832, 2195 Mhz, 9 MB, en-US/en-US, v5.9.0, OneNote 15.0, Office 16.0, 2023-11-01 13:08
01| ..C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE (16.0.16924.20124)
01| ..OnConnection(ConnectionMode:ext_cm_Startup,custom[1:Int32])
01| ..OneAddInsUpdate(custom[])
01| ..building ribbon
01| ..building ribbon colorizer commands
01| ..OnStartupComplete(custom[])
01| ..starting command service
01| ..starting reminder service
01| ..starting navigation service
01| ..ready
06| error invoking action
06| System.InvalidCastException
Message: Unable to cast COM object of type 'Microsoft.Office.Interop.OneNote.ApplicationClass' to interface type 'Microsoft.Office.Interop.OneNote.IApplicationCOM'. 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Source: mscorlib
StackTrace: at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.OneNote.ApplicationClassCOM.FindMeta(String bstrStartNodeID, String bstrSearchStringName, String& pbstrHierarchyXmlOut, Boolean fIncludeUnindexedPages, XMLSchema xsSchema)
at River.OneMoreAddIn.OneNote.<>c__DisplayClass72_0.b__0()
at River.OneMoreAddIn.OneNote.d__35.MoveNext()
TargetSite: [mscorlib] System.StubHelpers.StubHelpers::GetCOMIPFromRCW()
07| navigation service exception 0
07| System.InvalidCastException
Message: Unable to cast COM object of type 'Microsoft.Office.Interop.OneNote.ApplicationClass' to interface type 'Microsoft.Office.Interop.OneNote.IApplicationCOM'. 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Source: mscorlib
StackTrace: at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.OneNote.ApplicationClassCOM.get_Windows()
at River.OneMoreAddIn.OneNote.get_CurrentPageId()
at River.OneMoreAddIn.Commands.NavigationService.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at River.OneMoreAddIn.Commands.NavigationService.<b__11_0>d.MoveNext()
TargetSite: [mscorlib] System.StubHelpers.StubHelpers::GetCOMIPFromRCW()
09| navigation service exception 1
09| System.InvalidCastException
Message: Unable to cast COM object of type 'Microsoft.Office.Interop.OneNote.ApplicationClass' to interface type 'Microsoft.Office.Interop.OneNote.IApplicationCOM'. 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Source: mscorlib
StackTrace: at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.OneNote.ApplicationClassCOM.get_Windows()
at River.OneMoreAddIn.OneNote.get_CurrentPageId()
at River.OneMoreAddIn.Commands.NavigationService.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at River.OneMoreAddIn.Commands.NavigationService.<b__11_0>d.MoveNext()
TargetSite: [mscorlib] System.StubHelpers.StubHelpers::GetCOMIPFromRCW()
THE FINE PRINT This is a hobby project that I started for myself. I'm happy to take requests and will promise to
consider each one carefully but offer no guarantees that I will ultimately agree to their
usefulness or have time to implement any of them. If OneNote offers a "close enough" work-around
then I will probably reject the request - you've been warned!
The text was updated successfully, but these errors were encountered: