Closed robinboncoeur closed 5 years ago
Hi robinboncoeur,
Thanks for letting me know. Currently, the registry is only used to store the list of recent files opened in there (see this), which would explain why the error occurs right after opening a file. This error should not affect anything else other than the list of recent files itself (which I guess it will be empty for you).
I am not exactly sure of why the method to create registry keys would be missing though. This typically occurs when a dll has a different version than expected, but the dll in question is not shipped with the tool and should come with Windows instead. Perhaps it is due to the sandboxed environment you are using. Out of curiosity, do you know which version of the .NET Framework are you using? The tool targets 4.6.1 but it should run fine in newer versions.
In any case, I can switch to a different approach for storing the recent file list (via XML files), and the error should go away. I will let you know once I make the switch and test that everything works.
In fact, can you check if this build works for you without errors opening files?
Thank you for replying, Fernando. I'll admit that my Windows setup is a bit unusual, running in VBox and all. In answer to your question, I sort-of don't seem to have a version of a .Net Framework. What I do have is displayed in the image I've attached. The only development I do in Windows is VBA apps in Excel: for Python I use Linux and the Mac.
As to your solution: worked an absolute treat! No error message, all good. Thank you for the prompt fix: we can mark this issue resolved. :) Kind regards, Rob
On Sun, 28 Jul 2019 at 22:47, Fernando Andreu notifications@github.com wrote:
In fact, can you check if this build https://dev.azure.com/fernandreu-public/OfficeRibbonXEditor/_build/results?buildId=410&view=artifacts works for you without errors opening files?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fernandreu/office-ribbonx-editor/issues/48?email_source=notifications&email_token=ABLZ54UZHW5YTZOI6LSI5ETQBWINDA5CNFSM4IHL24WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2657SI#issuecomment-515760073, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLZ54RWTEXDUAVP6GAUYE3QBWINDANCNFSM4IHL24WA .
No problem! It seems GitHub has removed the attached image from the email response though.
Nevertheless, I found that the documentation of that CreateSubKey(string, bool) method explicitly mentions it is available starting with .NET Framework 4.6.
I am guessing that, even if you did not install a .NET Framework explicitly, another program might have done so (it is quite a common thing to happen). However, its version might be lower than 4.6, even though the Office RibbonX Editor is still able to run somehow.
If that is the case, I would recommend downloading the most recent .NET Framework version from here, as it might help preventing similar errors in the future.
Describe the bug Installed OfficeRibbonXEditor-v1.5.msi in Windows 7 Professional, running in a VM (VirtualBox) on a Macbook Pro 2012. After launching Office RibbonX Editor, opened a Excel .xlsm file, and this dialogue appears: Dialog Description: Error opening Office document
Text in dialogue: Method not found: 'Microsoft.Win32.RegistryKey Microsoft.Win32.RegistryKey.CreateSubKey(System.String, Boolean)',
To Reproduce Steps to reproduce the behavior:
Expected behavior This dialogue is of some concern - something that is expected to happen: doesn't.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Clicking OK and carrying on with using the software doesn't appear to have any issues, but I'm concerned that there might be problems when users open the files with customised menus.