I'm happily running an MVC2 site publicly on Mono / Apache. I assure you it works.
Simply go through the setup steps for a WebForms site and then point it at your MVC site. On Mon, May 9, 2011 at 10:13 AM, Doug <[email protected]> wrote: > There are indeed, many websites about running mvc via xsp2. > > Most of them suggest (as a first step) seeing the example in > /usr/share/asp.net2-demos/ to see how to do this. > > *The problem is that these examples are not MVC applications. * > > They are just aspx files. And that seems to be all xsp can handle... > > Indeed, if you jump into the source archive for xsp2, that's all you'll > find there too in the tests folder. > > Am I wrong? If someone can show me what I'm doing wrong I'm happy to admit > that. > > No matter how hard I look at it though, mod_mono and xsp (ie. the fast cgi > impl) only seem to be able to handle code-behind files, not wsgi style web > apps. > > ~ > Doug. > > > On Mon, May 9, 2011 at 9:59 PM, Abe Gillespie <[email protected]>wrote: > >> Mono runs ASP.Net MVC apps just fine. The sources are here: >> >> http://ftp.novell.com/pub/mono/sources/ >> >> XSP is at the very bottom. Note that you'll probably want mod_mono as >> well if you're running your site through Apache. Setup and running XSP / >> mod_mono is very Googlable; see what you can turn up. >> >> Note, that if you compiled MonoDevelop from source, there may be some >> extra steps involved to point MD at XSP and have it run / debug your MVC >> sites properly. I don't know, I never compile MD from source. >> >> -Abe >> >> On Mon, May 9, 2011 at 4:00 AM, Doug <[email protected]> wrote: >> >>> Hi there, >>> >>> I'm posting this here in the hopes the mono-list is slightly more >>> populated that the asp sublist. >>> >>> Basically the issue I have is this: >>> >>> I can compile an MVC 2.0 application under mono (great) but I can't >>> actually run it. >>> >>> xsp2 appears to only serve old-style apps where there is a 1-1 mapping >>> between the file system and files, with each .aspx file having an associated >>> .aspx.cs code-behind file. This is not how MVC apps work. >>> >>> MVC apps should have their urls parsed and run according to the routing >>> information defined for that application; typically the >>> /{controller}/{action} url is mapped to the function {action} in the class >>> Controller{controller} in the project. Under no circumstances should the >>> webserver randomly start trying to load aspx files from purely from the url >>> pattern. >>> >>> I've seen a few vague posts about something called 'xsp4' that is somehow >>> capable of doing this (for example this page mentions it with regard to >>> using razor: >>> http://twistedcode.net/blog/post/2011/02/03/Orchard-begins-to-work-under-Mono.aspx), >>> and is possibly packaged as part of the mono develop package, but I can't >>> find any concrete information on where to actually get this. >>> >>> Also, if it's part of mono develop, that's not particularly useful for, >>> for example, actually hosting a web app that uses MVC on a real server. >>> >>> Is this part of the git repo somewhere? >>> >>> I build mono 2.10 from source on my server, but I couldn't find the >>> sources to xsp anywhere. >>> >>> help~ >>> >>> cheers, >>> Doug. >>> >>> >>> >>> _______________________________________________ >>> Mono-list maillist - [email protected] >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > >
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
