Skip to content →

How to deploy ASP.NET applications on Ubuntu 16.04

Hi all, I’ve decided to write a simple tutorial on how you can deploy your very own ASP.Net applications. I couldn’t find a single tutorial online.

1. Check with what HTTP server you are running, can you run ASP.Net applications? (For Apache, you need the mod_mono mod enabled)

2. Mod_mono –> http://www.mono-project.com/ . You must have xsp4 (You need to see if mono supports your application – http://www.mono-project.com/docs/about-mono/compatibility/) Thankfully, i was making use of the .NET 4.6

3. Check for any potential errors on your site when you deploy (you might have errors, i had several (compilation parse errors, – this may take a while… and remember to add the bold line!

<configuration>
<system.web>
<compilation debug=”true” targetFramework=”4.6.1″/>
<httpRuntime targetFramework=”4.6.1″/>
<customErrors mode=”Off”/>
</system.web>

That will allow you to view errors on your site in the first place.

4. Once you’ve resolved that.. your application should run like it would on your Visual Studio! I hope i saved you a bunch of time! 🙂

via GIPHY

 

Published in Guides

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: