[Mono-list] mono installation

vlie0180@wxs.nl vlie0180@wxs.nl
Mon, 21 Jun 2004 12:02:00 +0200


Hi,

try to add this to your httpd.conf
== SNIP ==
# MONO configuration
LoadModule mono_module        modules/libmod_mono.so

Alias /mono "/opt/apache/mono"
MonoRunXSP True
MonoExecutablePath "/usr/local/bin/mono"
MonoServerPath "/usr/local/bin/mod-mono-server.exe"
MonoWapiDir "/tmp"
MonoApplicationsConfigFile "/opt/apache/conf/mono.config"
MonoApplications "/:/opt/apache/htdocs,/kpn:/opt/apache/kpn"
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
== SNIP ==

And create a file /opt/apache/conf/mono.config with the following content:
== SNIP ==
<apps>
        <add key="MonoApplications"
value="/:/opt/apache/htdocs,/kpn:/opt/apache
/kpn" />
</apps>
== SNIP ==

Be sure to replace the paths with what is appropriate for your
situation. (probably /usr/local/apache or alike)

Greetz,
Sander
----- Oorspronkelijk bericht -----
Van: geoff rainey <geoffr@datacom.co.nz>
Datum: maandag 21 juni 2004 om 11:08 uur
Onderwerp: [Mono-list] mono installation

> Hello,
> 
> I have installed the following:
> 
> platform - whitebox linux
> mono 0.31
> xsp 0.12
> mod_mono 0.10
> 
> all installed from source. I am receiving the following error when 
> viewing index.aspx and other errors with other aspx files, any 
> idea why?
> 
> 
> --------------------------------------------
> Here are some ASP.NET examples:
> 
> <% DirectoryInfo dir = new DirectoryInfo (Path.GetDirectoryName
> (Request.PhysicalPath)); FileInfo[] files = dir.GetFiles ();
> StringBuilder sb = new StringBuilder (); Hashtable styles = new
> Hashtable (); styles [".aspx"] = "background: #ffffff"; styles 
> [".ashx"]= "background: #00cccc"; styles [".asmx"] = "background: 
> #eeee00"; for
> (int i=0; i < files.Length; i++) { string fileName =
> Path.GetFileName(files[i].FullName); string extension =
> Path.GetExtension (files[i].FullName); if (styles.Contains 
> (extension)){ sb.AppendFormat ("
>  * {0}
> \n", fileName, styles [extension]); } } FileList.Text = 
> sb.ToString ();
> %>
> 
> --------------------------------------------
> 
> kind regards,
> -- 
> Geoff Rainey,
> UNIX systems consultant,
> Datacom Systems LTD
> DDI 308 4345
> Mob 0274 856 892
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>