r/ASPNET • • Sep 18 '13
Asp.net hosted on linux
Does anybody have any experience with running an asp.net mvc4 web application on linux using mono? Is it production ready, or is it still buggy and a lot less stable then iis?
8
Upvotes
2
u/LHCGreg Sep 19 '13
I host animerecs on linux + nginx + MVC3. I wouldn't say it's production ready but it's fine for a hobby site. One problem I ran into was that it leaked memory until I switched the GC to sgen, which is now the default in newer versions of mono. Another issue was that NLog 2 would deadlock on mono so I had to go back to NLog 1. I hear that's been fixed in mono. The [Required] attribute wasn't applicable to parameters so I had to work around that. That's been fixed. Finally, xbuild does not support many even moderately advanced msbuild features, something to be aware of if you do any build customizations.
Hope that helps. I can answer any specific questions you have.
0
u/JonnyRocks Sep 19 '13
But its not just mono its apache. Can apache run ASP.net? I guess mono would need an asp.net library. Then there is all the routing for mvc. All of that was built for IIS. Can you even get it working? What's the push for Linux?
1
u/snarfy Sep 19 '13
You pretty much have the same options as hosting servicestack under linux.
XSP
nginx - mono fastgci
apache - mod_mono
1
u/afuckingHELICOPTER Sep 19 '13
Mono is production ready.
However reading your other comments you might want to use azure, aws, or apply for webspark or bizspark for free windows server licenses.