How to run an ASP.NET web page on Ubuntu Server?

13,085

Basically, Microsoft did just about everything possible to ensure that you need to run ASP.Net on a Microsoft server.

Nevertheless, you should be able to run at least some .aspx scripts on an Apache server, using mod_mono.

Q: Are you sure you installed the mod_mono plugin correctly?

Q: Are you sure you configured Apache to recognize the mod_mono plugin, and invoke it for .aspx files?

Here are a couple of other links that might help you:

Note in particular the "troubleshooting" tips at the bottom of the Ubuntu link.

Share:
13,085
Justin Heather Barrios
Author by

Justin Heather Barrios

Updated on June 04, 2022

Comments

  • Justin Heather Barrios
    Justin Heather Barrios over 1 year

    I have been trying to follow this tutorial to the letter:

    http://library.linode.com/frameworks/mod-mono/ubuntu-10.04-lucid

    Here's what I have done so far:

    1. Installed Ubuntu server and successfully run it
    2. I can access and HTML page perfectly fine on the server
    3. I installed MONO on Ubuntu server
    4. I created /srv/www/example.org/public_html & logs
    5. I added the link to the /ect/apache2/sites-available/example.org
    6. I added my ASP.NET file to /srv/www/example.org/public_html/test.aspx
    7. I added a config file: /srv/www/example.org/public_html/test.aspx
    8. I then reloaded apache and went to the web page

    I came to a site that listed the available files. I saw web.config and test.aspx. When I click on test.aspx it shows the code instead of the ASP web page. What am I doing wrong?