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

Access to the path "/etc/mono/registry" is denied. #216

Open
se5a opened this issue Nov 27, 2018 · 0 comments
Open

Access to the path "/etc/mono/registry" is denied. #216

se5a opened this issue Nov 27, 2018 · 0 comments
Labels
Projects

Comments

@se5a
Copy link
Contributor

se5a commented Nov 27, 2018

Ncalc calls System.Diagnostics.Trace.TraceInformation(string message) which eventually tries to create a directory in the registry via System.IO.Directory.CreateDirectoriesInternal(string path) somewhere along the way it decides whether to use HKCU - which will work fine as that writes to ~/.mono/registry, however in some cases it'll go for HKLM which is in etc/mono/registry. which the user doesn't typically have access to (without resulting to sudo)

https://github.com/mono/mono/blob/master/mcs/class/referencesource/System.Xml/System/Xml/Core/XmlReaderSettings.cs#L734

you can see the callstack and showing external code to see this when it happens.
I don't know why this happens on some systems and not on others.
One work around (which is the wrong fix) is to create the folder in etc/mono/registry and set permissions so the user can write to it. until I figure out what's really going on with this it's all I've got.

@agm-114 agm-114 added the tproject Part of the Tasks Project label Jan 25, 2020
@agm-114 agm-114 added this to Current Todo in Tasks Jan 25, 2020
@agm-114 agm-114 moved this from Current Todo to Bugs in Tasks Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Tasks
  
Bugs
Development

No branches or pull requests

2 participants