[Mono-dev] Can I use mod_mono with xsp2

Joe Audette joe_audette at yahoo.com
Sat Nov 19 21:34:25 EST 2005

Thanks Elliott!
 Thats very helpful.
 I'll give that a try tomorrow and let you know how it goes.

Elliott Draper <el at eldiablo.co.uk> wrote: Joe Audette wrote:

> Is it possible to use the new 2.0 ASP.NET features that are currently 
> implemented in mono with mod_mono on apache2? Or can it only be done 
> using xsp2 from the command line?
> What do I have to configure differently to make this happen?
> I'm using Virtual Hosts in apache.

Check this out: http://www.mono-project.com/Mod_mono#Paths

You'll see that you can use "MonoServerPath" to specify the actual 
ModMono executable used, and instead of using the default one, you can 
use "$MONO/lib/mono/2.0/mod-mono-server2.exe" to target the 2.0 profile 
(where $MONO is the path to your Mono installation).

> Can I make a new Virtual Host that is configured for ASP.NET 2.0 or 
> xsp2/mod_mono while leaving the other Virtual Hosts running under the 
> regular 1.1 implementation of xsp/mod_mono?

Not sure on this, but I would think you can specify different 
"MonoServerPath" settings for different vhosts.

> If so any tips or links on how to do it would be much appreciated.
> *snip*
> I have a copy of mojoportal compiled in VS 2005 and I am trying to get 
> setup so I can test it on my mono machine. It doesn't use any of the 
> ASP.NET 2.0 features but it was compiled on Windows against the 2.0 
> framework.


> Anyone else done any testing of building a web app in VS 2005 and able 
> to get it running on mod_mono/apache2?

I write all of my apps at the minute using VS2005, and am finding it 
easy to port most apps to using the Mono 2.0 profile, so that I can take 
advantage of 2.0 features. I had a tough time using web apps created 
under VS2005 using Mono a while back though, so took to (where possible) 
back porting them to 1.1, removing partial classes, and obviously this 
was only possible for projects not using or referencing 2.0 features 
like generics etc. This did however get my web apps built using VS2005 
running on mod_mono!

I haven't retried straight porting a 2.0 app created with VS2005 in a 
while tho, when I get more time I hope to give it another bash; I'm sure 
with a lot of the recent updates to the codebase I should have more luck 
:-) Let me know how you get on!

> Thanks,

Hope that helps!

> Joe

-= El =-

> joe_audette [at] yahoo dotcom
> http://www.joeaudette.com
> http://www.mojoportal.com
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com

Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

joe_audette [at] yahoo dotcom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051119/774bd0bf/attachment.html 

More information about the Mono-devel-list mailing list