Thanks to mono we can run asp.net on our linux machines (i have to test some asp.net code), to do that we will use XSP, here the description took it from mono website.

XSP is a standalone web server written in C# that can be used to run your ASP.NET applications with minimal effort. XSP works under both the Mono and Microsoft runtimes. The code is available from our download page (look for XSP web server) or from the Anonymous SVN repository (module name: xsp).

To nstall it:

#install XSP

sudo apt-get install mono-xsp2

# i have to use vb.net so, i installed the Visual Basic.NET Compiler

sudo apt-get install mono-vbnc

Once installed, just start XSP from the directory where your code is located, after that you can browse to http://localhost:8080 to see your web pages