Skip to content

Instantly share code, notes, and snippets.

@hanssens
Created December 30, 2013 14:03
Show Gist options
  • Save hanssens/8182406 to your computer and use it in GitHub Desktop.
Save hanssens/8182406 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