Click here to Skip to main content
15,883,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

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
 
Share this answer
 
Comments
Casey Sheridan 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 13-Nov-12 9:43am    
Here:
http://wiki.nginx.org/Mono

Are you sure you really need nginx? Why not Apache?
--SA
Casey Sheridan 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 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
Casey Sheridan 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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900