[Mono-list] mod_mono: embedded asp.net tags et al.
Gonzalo Paniagua Javier
Mon, 26 Jan 2004 18:13:51 +0100
El lun, 26-01-2004 a las 16:08, Christopher Holst escribió:
> I hope this is the right list I'm posting to with my problem. Is there a
> special list for mod_mono ?
> I'm currently trying to get a quite large asp.net application to run on
> linux with mod_mono/xsp/apache, but I'm facing some problems :(
> The two main problems are:
> - embedded asp.net tags
> in the iis/MS.NET version we're using embedded tags like e.g.
> "<table width="100%" height="100%" border=0 <%= (sc.IE5 ? "class=tableIE" :
> "class=table") %>>"
> The errormessage I get is "Error message: expecting '>'. Got '<' ".
> As this works with MS.NET I suppose this is a bug in Mono ?
<a href='<%= (IsPostBack) ? "hola" : "adios" %>' >hola</a>
So may be you can rewrite that as: class='<%= (sc.IE5 ? "tableIE" :
"table"' or even use databinding for assigning the value.
I know that MS doesn't get well when mixing coderender and databinding
in some weird cases and we do it right (because they seem to process the
files using regular expressions)... May be this is the counter part :).
Anyway, feel free to file a bug report for this issue in
http://bugzilla.ximian.com (Mono/Class libraries - Sys.Web) providing a
simple page that reproduces the error. Also, out of curiosity, tell us
in the report if that syntax works for 'runat="server"' controls.
> - object tags in global.asax
> In the global.asax file of the application we have the following line which
> apparently is ignored:
> "<object id="sf" runat="server" scope="session"
> class="MyNameSpace.Business.SessionContainerFactory" />"
> It seems that every call on sf.MyVariable does not work.
Ouch! I keep forgetting about this. This should be easy to fix. Please,
> - a general question regarding mod_mono and xsp
> Is it correct that I need both the XSP webserver and the mod_mono apache
> module ? I got the whole thing to work when proceeding as it was described
> in the INSTALL file of the xsp tar.gz, but the little I know about apache is
> that *normally* you only load a module (like mod_php) and this provides all
> new functionality. Is there something I got wrong or does mod_mono need this
> "special" treatment ?
When Daniel López started mod_mono, the module embedded mono runtime,
which introduces an additional dependency for apache and made the
installation more complicated. After that, we created a version that
doesn't depend on any mono library, but interacts with mod-mono-server
through a unix socket to handle ASP.NET requests. That's why you need
OTOH, you can try mod_mono_old, which is the module that embeds the
runtime (not as stable as mod_mono itself).
Thanks for your feedback.