[Mono-list] Close to working?

John (Doc) Soliday jlsolida@gapac.com
02 Sep 2003 12:17:42 -0400


I'm new to mono and very new (today) to this list.  I've got mod_mono
close to working in apache, but not close enough...

Environment:
mono-0.26-1.ximian.6.1         RPM
mono-devel-0.26-1.ximian.6.1   RPM
httpd-2.0.40-21                RPM
httpd-devel-2.0.40-21          RPM
xsp-0.5                        Built from source
mod_mono-0.4                   Built from source

/etc/httpd/conf/httpd.conf entries:
# mod_mono_unix
Listen 8080
LoadModule mono_unix_module
/home/download/mod_mono-0.4/src/.libs/libmod_mono_unix.so
MonoApplicationUnix /mono /tmp/mod_mono_server

I've started mod-mono-server.exe manually:
mono /usr/local/xsp/bin/mod-mono-server.exe &

When I attempt to contact the mono server/module in the browser
(mozilla), I get the following:
Error in '/' Application

________________________________________________________________________
Error
Description: Error processing request. 

Error Message: 

Stack Trace: 
System.IO.DirectoryNotFoundException: Directory '/etc/rc.d/init.d/mono'
not found.
in <0x0017d> 00 System.IO.StreamReader:.ctor
(string,System.Text.Encoding,bool,int)
in <0x0001a> 00 System.IO.StreamReader:.ctor
(string,System.Text.Encoding)
in <0x00078> 08 System.IO.StreamReader:.ctor
(string,System.Text.Encoding)
in <0x0003e> 00 System.Web.Compilation.AspGenerator:InitParser (string)
in <0x00041> 00 System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x0003d> 00 System.Web.UI.PageParser:CompileIntoType ()
in <0x0007b> 00 System.Web.UI.TemplateControlParser:GetCompiledInstance
(string,string,System.Web.HttpContext)
in <0x0004c> 00 System.Web.UI.PageParser:GetCompiledPageInstance
(string,string,System.Web.HttpContext)
in <0x00013> 00 System.Web.UI.PageHandlerFactory:GetHandler
(System.Web.HttpContext,string,string,string)
in <0x001a9> 00 System.Web.HttpApplication:CreateHttpHandler
(System.Web.HttpContext,string,string,string)
in <0x0011f> 00 .CreateHandlerState:Execute ()
in <0x0006f> 00 .StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)


I understand the first line...it's looking for /etc/rc.d/init.d/mono,
which is not installed nor contained in the RPM.  The remainder I have
no clue (I'm not a C developer, so it looks like Greek to me).

Is there a default /etc/rc.d/init.d/mono rc script I'm supposed to
have?  If so, when can I get it?  As I said, it's not in the mono RPM. 
It also wasn't installed when I built mod_mono (not in install section
of Makefile).  If I have that file, will the remainder of the errors (C
stack trace) go away, or is there something else wrong?

Thanks,

-- 
John (Doc) Soliday
Commerce Services
(404) 652-3343
jlsolida@gapac.com