How to run ASP.NET 2.0 WebSites on Mono

Modified: 2009/04/19 10:40 by sergey - Uncategorized
This page is a Draft, its content is not complete and might contain errors.
Mono came out with complete support for ASP.NET 2.0 for the first time in history a couple of weeks ago. This means that for the first time in history we're able to build 100% FREE ASP.NET 2.0 software on a completely free stack from the bottom to the very top :)

But it's really not that hard in fact, just download the .bin file and change it's properties to "executable" by browsing to it with e.g. Nautilus (Linux "Explorer") and choose the properties for it and go to the Permission tab sheet and hook in for "Allow executing file as a program". When you've done that you can (for Ubuntu) open up a Shell or Terminal and go to the directory for the file and type; sudo .\mono-1.2.4_4-installer.bin and the installer will start. For those that just recently made the port to Ubuntu the FIRST word (sudo) is imperative since you want to run this program as administrator. If you don't run it as an administrator you can only install it LOCALLY for the directories your (restricted) user account has WRITE access to. When you're executing this command you'll be asked for the admin password for your system, type this in and just follow the installer. It's kind of like a "normal Windows installer". Everything will just work :) Edit

Running ASP.NET 2.0 apps on Mono

There's basically nothing else you need to do then to open up a shell, browse to the folder where your ASP.NET 2.0 WebSite is located and write in at the command prompt of your Shell (Terminal); xsp2! :)

That's it! :) Now you have a webserver running locally on port 8080 which you can browse to by opening FireFox or any other browser on your Linux system and typing in; http://localhost:8080/Default.aspx and you're airborn! :) The first time I did this with our Gaia Sample WebSite it was a true rush! Basically everything just worked (almost) out of the box. The latest release of Mono is truly awesome and I urge you all to try it out, also within some few weeks our own Ajax Library for ASP.NET 2.0 will come out with a 100% perfect build system for Linux. This means that not only can you "out of the box" RUN Gaia WebApps on Linux (which you can already) but you can also COMPILE Gaia itself on your linux box. Great things are happening...

ScrewTurn Wiki version 2.0.33. Some of the icons created by FamFamFam.