[Mono-devel-list] mod_mono exception

Alvaro A. Ramirez alramire at syr.edu
Sun May 18 18:28:49 EDT 2003

Hi. I have installed mod_mono as suggested by the INSTALL file.
However,  I get the following exception when I try to access the asp
page by using

System.IO.DirectoryNotFoundException: Directory '/tucoserv/mono' not
in <0x001ab> 00 System.IO.StreamReader:.ctor
in <0x0001d> 00 System.IO.StreamReader:.ctor (string,System.Text.Encoding)
in <0x00047> 00 System.Web.Compilation.AspGenerator:InitParser (string)
in <0x0004d> 00 System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x0003e> 00 System.Web.UI.PageParser:CompileIntoType ()
in <0x00075> 00 System.Web.UI.TemplateControlParser:GetCompiledInstance (string,string,System.Web.HttpContext)
in <0x0004e> 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 <0x001bb> 00 System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
in <0x001a6> 00 .CreateHandlerState:Execute ()
in <0x0007f> 00 .StateMachine:ExecuteState (IStateHandler,bool&)

The install file gives some instructions for installing on red hat 8.0.
However, I am running Mandrake 9.1. I did the following to compile

./configure.sh --with-apxs=/usr/sbin/apxs2
make install

I had to move the mod_mono.so file from 
as apache complained when starting. 

After that, it loaded it fine. 

Also, I put ModMono.dll
in /usr/lib/

I edited my httpd2.conf file and placed:

LoadModule mono_module mod_mono.so
MonoApplication /mono /tucoserv/mono

in the directory /tucoserv/mono
i dumped everything that was generated in the test directory once I did
make and make install in the xsp directory

I also changed the owner if it (recursively) to apache

drwxrwxr-x    4 apache   apache       4096 May 18 14:02 mono/

also did the little hack suggested:

mkdir /var/www/.wapi/
chown apache.apache /var/www/.wapi
chmod 700 /var/www/.wapi

any suggestions? thanks


More information about the Mono-devel-list mailing list