Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flashfoxter/e080baba0bd664ba9d376e4792ff69e6 to your computer and use it in GitHub Desktop.
Save flashfoxter/e080baba0bd664ba9d376e4792ff69e6 to your computer and use it in GitHub Desktop.
Fix for the UnauthorizedAccessException in Xamarin Studio (MonoDevelop) when running a MVC 4/5 website on Mac OSX.

Fix for the UnauthorizedAccessException in Xamarin Studio

This is a fix for the UnauthorizedAccessException in Xamarin Studio (MonoDevelop) when running a MVC 4/5 website on Mac OSX.

The error:

System.UnauthorizedAccessException
Access to the path "/Library/Frameworks/Mono.framework/Versions/3.2.5/etc/mono/registry" is denied.
 
Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): mscorlib.
Exception stack trace: ...

Run the following commands to allow access:

sudo mkdir /Library/Frameworks/Mono.framework/Versions/3.2.5/etc/mono/registry

sudo chmod g+rwx /Library/Frameworks/Mono.framework/Versions/3.2.5/etc/mono/registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment