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

Method not found #48

Closed
robinboncoeur opened this issue Jul 28, 2019 · 4 comments
Closed

Method not found #48

robinboncoeur opened this issue Jul 28, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@robinboncoeur
Copy link

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:

  1. Load Office RibbonX Editor
  2. Open any Excel .xlsm file - happens consistently
  3. See error

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.

@robinboncoeur robinboncoeur added the bug Something isn't working label Jul 28, 2019
@fernandreu
Copy link
Owner

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.

fernandreu added a commit that referenced this issue Jul 28, 2019
@fernandreu
Copy link
Owner

In fact, can you check if this build works for you without errors opening files?

@robinboncoeur
Copy link
Author

robinboncoeur commented Jul 28, 2019 via email

@fernandreu
Copy link
Owner

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.

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

No branches or pull requests

2 participants