Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Mono ASP.NET Linux Apache Ubuntu , +
Hi,
 
I've been developing a web forms application on Windows with Visual Studio. To host it, I have a Ubuntu 12.04 machine. It will use PostgreSQL for a database. I'm currently using .Net 4.0 but I'm not sure if I need .Net 2.0
 
I have read oodles of tutorials on how to install mod-mono, mod-asp.net, mono, postgresql, all that stuff.
But I'm not finding:
1) Stuff that's completely relevant to my situation
2) Tutorials that match
3) Much info that makes sense
 
I have only up to a year's experience with Linux and not much technical time with it.
 
I would appreciate any help with this. Anyone with experience in this area is more than welcome to help. Thanks!
Posted 10-Nov-12 15:14pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

For ASP.NET, you will need not .NET, but alternative implementation of CLR, Mono:
http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^].
 
Mono has a lot of documentation, but when it comes to programming, you can use .NET documentation. There are incompatibilities, but you mostly need Base Class Library (BCL), whuich is a part of ECMA standard.
 
Please see:
http://en.wikipedia.org/wiki/Common_Language_Runtime[^],
http://en.wikipedia.org/wiki/Common_Language_Infrastructure[^],
http://en.wikipedia.org/wiki/Base_Class_Library[^].
 
To use ASP.NET, you will also need Apache with the module mod_mono:
http://en.wikipedia.org/wiki/Mod_mono[^],
http://www.mono-project.com/Mod_mono[^].
 
—SA
  Permalink  
Comments
GeekForChrist at 13-Nov-12 8:32am
   
This is good stuff. But, do you know anything about using nginx with mono? (Sorry I didn't mention server software earlier)
Sergey Alexandrovich Kryukov at 13-Nov-12 9:43am
   
Here:
http://wiki.nginx.org/Mono
 
Are you sure you really need nginx? Why not Apache?
--SA
GeekForChrist at 13-Nov-12 9:54am
   
There's really two reasons I want nginx (no, I don't really need it)
1. Fast always sounds nice, even if it won't benifit me much with a small site
2. I don't really like Apache having such a market share when there are other great servers out there.
 
So really it's just preference.
Sergey Alexandrovich Kryukov at 13-Nov-12 10:03am
   
If I were you I would probably try out nginx, even though in forum people discuss problems using ASP.NET. I never tried, so I cannot say anything more.
 
I think you still don't have a compelling reason to prefer nginx over Apache; even performance difference, if any, will hardly become a bottleneck, but functionality certainly is -- what if you are going to fail to run your ASP.NET site on nginx?
 
So, even though I would try out nginx, it does not look like this is your ultimate goal, and Apache is a viable option -- so, will you accept my answer formally (green button)? -- thanks.
 
--SA
GeekforChrist at 13-Nov-12 10:08am
   
I would accept your answer but it doesn't answer enough of my question to let me move on. I still need to figure out which version of .net among other things (please refer to question).
I don't mean to offend you by not marking you as the answer. Maybe I should just create a new question with one less aspect.
Sergey Alexandrovich Kryukov at 13-Nov-12 10:14am
   
You could move on without even asking the question, as most people do. Take everything the latest and don't struggle with the version. I don't see how it could be a problem, especially with ASP.NET (because the .NET layer used here is very thin).
--SA
GeekforChrist at 13-Nov-12 10:15am
   
Thanks
Sergey Alexandrovich Kryukov at 13-Nov-12 10:26am
   
You are very welcome. I'm interested by ASP.NET development without IIS (try to avoid it by all means) myself, preferably on Linux, but cannot get enough time for this as this is far from my work. So, if I get some new experience, I'll gladly share it with you.
 
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 550
1 Sergey Alexandrovich Kryukov 420
2 George Jonsson 288
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web02 | 2.8.140905.1 | Last Updated 10 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100