Skip to content
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

Refresh button in TOC give "An unexpected error has occurred " #1674

Open
A-Nicoladie opened this issue Nov 18, 2024 · 13 comments
Open

Refresh button in TOC give "An unexpected error has occurred " #1674

A-Nicoladie opened this issue Nov 18, 2024 · 13 comments
Labels
bug Something isn't working no-repro Cannot reproduce

Comments

@A-Nicoladie
Copy link

Problem to Solve

When I click on th refresh button in TOC, I have the following message :

Une erreur inattendue s'est produite.

Or probably in english : An unexpected error has occurred

To Reproduce

Steps to reproduce the behavior:

  1. Add some titles
  2. Add a TOC
  3. Click on refresh

Expected Behavior

A refresh of the TOC

Screenshots

image

Environment

One More (

  • OneNote Version: on Windows 11 (23H2) with O365 64bits / OneNote 16.0.18025.20214
  • OneMore Version 6.6.1

Additional Context

Nothing found in the log file :
OneMore.log

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!

@A-Nicoladie A-Nicoladie added bug Something isn't working unread I have seen it or had time to refine it yet labels Nov 18, 2024
@stevencohn
Copy link
Owner

Unable to reproduce the simple example shown above. Are you sure you have the latest OneMore.log? It doesn't even include the line showing the refresh was executed??

@stevencohn stevencohn added no-repro Cannot reproduce and removed unread I have seen it or had time to refine it yet labels Nov 18, 2024
@A-Nicoladie
Copy link
Author

Yes this is the last. No matter how many times I click on refresh, nothing is written in log about it.

The insert is logged:

01|03:25:52.844| ..ready
14|03:25:52.848| hashtag service waiting, Ready
03|03:26:02.187| hashtag SERVICE scanned 718 pages, 6/6 notebooks, 165 sections, updating 0 pages, saving 0 tags, in 6325ms
03|03:26:02.328| Running command InsertTocCommand
10|03:26:06.683| ..build toc for page 
10|03:28:07.353| hashtag SERVICE scanned 718 pages, 6/6 notebooks, 165 sections, updating 0 pages, saving 0 tags, in 5107ms

@stevencohn
Copy link
Owner

stevencohn commented Nov 18, 2024

If you hover your mouse cursor over the Refresh link, does it look like this?

image

Try deleting the Table of Contents and try recreating it.

The only other thing I can think of is that OneMore didn't install completely and didn't register the onemore:// trusted protocol so Windows doesn't know what to do with it when you click the link

@A-Nicoladie
Copy link
Author

  1. Yes

image

  1. Deleting and recreating : same issue

  2. I will try to reinstall it as soon as I can and I will let you know.

@stevencohn
Copy link
Owner

You can attach the installation log here when you're done and I'll take a look.
%temp%\OneMoreSetup.log

@A-Nicoladie
Copy link
Author

Same problem after uninstall/install

I recreated a page with titles, added a TOC, and clicked on refresh.

Here's the log : OneMore.log

@stevencohn
Copy link
Owner

Your log isn't showing that the refresh link is clicked, which still indicates that the onemore: protocol isn't registered.

If you can, download the iq.ps1 file, and run it from an administrative PowerShell console. It makes no changes! It only reports configuration. It should show output like this, with the onemore: protocol highlighted below:

image

@stevencohn
Copy link
Owner

Do you still have the installation log that you can attach here? %temp%\OneMoreSetup.log

@A-Nicoladie
Copy link
Author

Result of PowerShell script

Versions...
OK Office version is 16.0
OK OneNote version is 15.0 (64-bit)

AppID...
OK Registry::HKEY_CLASSES_ROOT\AppID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}

Root...
OK Registry::HKEY_CLASSES_ROOT\onemore

Shell...
OK Registry::HKEY_CLASSES_ROOT\onemore\shell\open\command
= "C:\Program Files\River\OneMoreAddIn\OneMoreProtocolHandler.exe" %1 %2 %3 %4 %5

AddIn...
OK Registry::HKEY_CLASSES_ROOT\River.OneMoreAddIn
OK Registry::HKEY_CLASSES_ROOT\River.OneMoreAddIn.1

CLSID...
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\InprocServer32
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\InprocServer32\6.6.1.0
= Assembly = River.OneMoreAddIn, Version=6.6.1.0, Culture=neutral, PublicKeyToken=null
= CodeBase = C:\Program Files\River\OneMoreAddIn\River.OneMoreAddIn.dll
= RuntimeVersion = v4.0.30319
= Class = River.OneMoreAddIn.AddIn
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\ProgID
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\Programmable
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\TypeLib
OK Registry::HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\VersionIndependentProgID

User...
OK Registry::HKEY_CURRENT_USER\SOFTWARE\Classes\AppID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}
OK Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\OneNote\AddIns\River.OneMoreAddIn
OK Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\River.OneMoreAddIn.dll
= C:\Program Files\River\OneMoreAddIn\River.OneMoreAddIn.dll
OK Registry::HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\16.0\Common\Security\Trusted Protocols\All Applications\onemore:

WebView2...
OK Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}
OK location = C:\Program Files (x86)\Microsoft\EdgeWebView\Application
= version = 130.0.2849.80
= location = C:\Program Files (x86)\Microsoft\EdgeWebView\Application

There is no %temp%\OneMoreSetup.log file (even after reinstalling the application again)

@stevencohn
Copy link
Owner

There is another log file that should be created after you click the Refresh button the first time

%temp%\OneMoreProtocolHandler.log

This should be equivalent to something like C:\Users\<username>\AppData\Local\Temp\OneMoreProtocolHandler.log

One line should be written every time you click refresh. Is that file created? Are those lines being written?

@A-Nicoladie
Copy link
Author

The file contains only these lines

pipe client connected
writing 'onemore://InsertTocCommand/refresh/style0'

It's a few days old.

@stevencohn
Copy link
Owner

stevencohn commented Nov 22, 2024

Well that's good! Those two lines should be written every time you click refresh. So we know the onemore: protocol is being registered correctly and invoked.

Now to that debug version.... Thank you for your patience and assistance!!

@A-Nicoladie
Copy link
Author

Sorry for this long silence. Just to say:

  • that these lines appear only once in the file, despite having clicked several times on the button
  • the file's last update date is earlier than the date of the last reinstallation (file update date : 2024-11-14 // last fresh installation I do : 2024-11-21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-repro Cannot reproduce
Projects
None yet
Development

No branches or pull requests

2 participants