paint-brush
Solving ASP.NET MVC project runtime errors on Monoby@xameeramir
347 reads
347 reads

Solving ASP.NET MVC project runtime errors on Mono

by Zameer AnsariDecember 25th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

<a href="https://chornsokun.wordpress.com/2011/11/11/build-monodevelop-on-ubuntu-11-10/" target="_blank">courtesy</a>
featured image - Solving ASP.NET MVC project runtime errors on Mono
Zameer Ansari HackerNoon profile picture

courtesy

In case we’re running an ASP.NET application on Mono using Monodevelop for the first time, we may receive the below error:

In some cases, the problem is incorrect installation of [xsp4](http://packages.ubuntu.com/precise/web/mono-xsp4) server.

Install it using:

sudo apt-get install mono-xsp4

This solved the above error.

Optional: get it from Ubuntu software center by searching for xsp4

After the xsp4 server is installed and ready. The project will start running at http://127.0.0.1:8080/

A directory access error saying [Access to the path “/etc/mono/registry” is denied](http://stackoverflow.com/q/24872394/2404470) may also show up which can be solved by simply creating the folder using [mkdir](http://alvinalexander.com/unix/edu/examples/mkdir.shtml)

sudo mkdir /etc/mono/registry

and setting the right permissions using [chmod](https://en.wikipedia.org/wiki/Chmod)

sudo chmod uog+rw /etc/mono/registry

Photos

Originally published at xameeramir.github.io.