Running ASP.NET Applications On Linux Using Mono

ASP.NET is one of the best web technologies available today on Windows Platform. However it's no more true :-) now we can run ASP.NET applications on Linux using Mono Framework. Mono has developed a stand alone web server called Mono XSP for running ASP.NET applications on C# which can be run using Mono. Moreover it can be run on Apache web server using mod-mono Apache module.
Now with Mono XSP2 we have a complete software stack for running .NET Applications on Linux:
1. .NET Console Applications can run on Mono without doing any modifications.
2. .NET Windows Applications can be ported to GTK (Mono uses GTK for GUI implementation) and run on Mono.
3. ASP.NET Applications (including Web Services) can be directly run on Mono XSP2 without any modifications.
How to install Mono XSP2 on Ubuntu:
>sudo apt-get install mono-xsp2 mono-xsp2-base
Install Sample Web Applications:
>sudo apt-get install asp.net2-examples
Run The Web Server:
>xsp2 --root /usr/share/asp.net2-demos/
Listening on address: 0.0.0.0
Root directory: /usr/share/asp.net2-demos
Listening on port: 8080 (non-secure)
Hit Return to stop the server.
Test On A Web Browser:
Open a web browser and go to http://localhost:8080. This should open asp.net2-demos web application.
References:
http://www.mono-project.com/ASP.NET
http://www.howtogeek.com/howto/ubuntu/run-aspnet-applications-on-ubuntu-for-developers/
Similar Posts
A New World of Content Management
Migrated Community Server Blog to Blog Engine
The Mono Development Environment