I was talking to a friend of mine who said that he was running an ASP.NET 2.0 app on a Linux machine. That would be too good to be true wouldn’t it? Well he indeed showed me and thus I had to believe him. He was running the app on a Redhat linux box with Apache2 and Mono.
I was intrigued and toyed with it myself for several days but could not get it to work. Since then, I allways wanted to try again. If he could do it, I certainly can! I hate to admit failiure…
So, I’m going to have a shot at it again, this time following this post: Timani’s Blog » Blog Archive » Installing mono, apache, mod_mono and deploying applications in Ubuntu
I will let you know what I find out!
Have any of you guys done it before?
August 7, 2007 at 20:56 |
At the risk of stepping on someones toes: MONO SUCKS!
I did not get it running, I allways got a 503, just as the other time I tried. I could not even get the examples running with xsp2!
A waste of an otherwise perfectly good evening.
If I install a Win2003 Web edition and deploy to that machine, it just works. Sorry but I won’t be switching any time soon…
Other than that, afaik, you cannot just develop some app with all the controls and microsoft assemblies and just expect it run. So again it seems like a steep learning curve deja vu all over again.
Let me ask this: What is the point of Mono anyway? What advantage does Mono have over MS?
August 7, 2007 at 21:10 |
Hey there dyonisius interesting i am not sure on if i had a problem with xsp2 part. tell me how it goes. What OS r u using? Ubuntu Feisty?
I guess mono is an attempt to try and get an MS .net following on linux, but i cant really see myself doing any major work on it. Its more for entertainment.
PS: may want to double check the httpd.conf so it looks like this (if Ubuntu Feisty):
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so
Just a guess coz 503 would imply the service is not correctly started.
Anyway goodluck
Tim
August 7, 2007 at 21:15 |
Yes, on ubuntu Feisty.
No, the line was good (mind you: in your post there is a little error in that line). WHen reloading Apache2, it even warns me that the module was already loaded and thus was skipping.
And yes, I guess too something or another was not running.
But as you said, I don’t see myself doing any serious work with it either…
August 8, 2007 at 14:16 |
If you’re using 2.0 features with mod_mono, be sure to check http://www.mono-project.com/Mod_mono#ASP.NET_2_apps_do_not_work – otherwise you will get messages that don’t really suggest that 2.0 assemblies are missing.
Once you get it running, it will be easy to change config / experiment with it.
Also try to get new mono packages (1.2.X at least) – there were many asp.net2 improvements lately.
@Timani: “Other than that, afaik, you cannot just develop some app with all the controls and microsoft assemblies and just expect it run.”
Yes – you can expect exactly that.
@dyonisius:
“What is the point of Mono anyway? What advantage does Mono have over MS?”
Cost of introducing new servers / software / staff when you’re linux based company already.
In short… you have to have experience in apache configuration if you want to configure apache + mod_mono – there’s no way out. I can’t configure IIS, but I don’t rant about .NET because of that.
Mail me if you want a working tarball with config / sample app tree.
August 8, 2007 at 16:56 |
I knew I risked offending someone.
But at least I got a good answer to my questions.
However, I do know Apache2 configuration. At the moment I’m hosting 4 servers in a datacenter, only 1 is windows based. My other 3 are set up for virtual hosting based on ubuntu server 7.04.
So I’m very greatful about your answer to the point and advantage qestions.
No realy: If I could run a asp.net app on a linux box, without worring about missing assamblies or broken functionality upon deployment, I’d be the happiest fish in the pond for sure.
You know what, I’ll try it again this evening. Maybe the trouble comes from one of the .deb packages, I dont know. I’ll try to build it from scratch this time.
August 10, 2007 at 13:10 |
Sorry for the tone
If you want new packages, you can try http://www.viraptor.info/repo – I’ve got mono-1.2.4 packages from gusty compiled for feisty there. No mod-mono package, but you can compile it easily.
Everything works for me in this config.
And of course – there will be missing assembly from time to time – unfortunately. But asp.net2 seems to be under heavy development now – if it’s not there – it should arrive shortly. AFAIR asp.net was ~95% complete (by class count) some time ago. Most problems will be p/invoke or paths stuff probably.
Don’t know what problem are you running in, but I hope you’ll resolve it
August 10, 2007 at 13:13 |
Hey Viraptor, Thanks for being willing to help me out. Take a look at my newer post on this: http://dyonisius.wordpress.com/2007/08/08/aspnet-on-linux-pt2-it-works/
I got it working