[Mono-list] Re: Mod_mono error

Arnaud Bienvenu arnaud.bienvenu@makina-corpus.org
Fri, 03 Sep 2004 17:51:55 +0200


Hello,

Here are a few tips...

Vamshi Krishna Kaniganti a écrit :
> When i am running the mod mono with apache i am getting the following 
> error  while accessing the browser page

Could you tell precisely the URL you try to access. Is it 
http://localhost/demo/index.aspx ?

>  Server error in '/' application
> 
> ------------------------------------------------------------------------
> 
> 
>    /Cannot find '/demo/index.aspx'./
> 
> *Description: *Error processing request.
> 
> *Error Message: *HTTP 404. Cannot find '/demo/index.aspx'.

I guess this is the message displayed in your browser. It would be 
interesting to know what is the server message, logged into a file named 
like "error.log" (/var/log/httpd/error_log for Mandrake).

> same error comes even if i try to access the html pages under the demo url
> 
> 
>  Server error in '/' application
> 
> ------------------------------------------------------------------------
> 
> 
>    /File '/demo/index.html' not found./
> 
> *Description: *Error processing request.
> 
> *Error Message: *HTTP 404. File '/demo/index.html' not found.

You shoud add a line in your apache configuration :
DirectoryIndex index.aspx

> Our httpd.conf file has the following  configuration
> 
> LoadModule mono_module        modules/libmod_mono.so
> 
> Alias /demo "/usr/share/doc/xsp/test"
> MonoApplications "/demo:/usr/share/doc/xsp/test"
> <Location /demo>
>            SetHandler mono
> </Location>

This config works for me, so you must have missed something elsewhere. 
By the way, are you sure you modified the correct configuration file ? 
On Mandrake, the config file for Apache 2 is httpd2.conf, not 
httpd.conf. Just to be sure, put "Blopblop" in your config file, and 
check that your Apache server will complain about this invalid directive 
while restarting ;-)

Good luck,
-- 
Arnaud Bienvenu
Makina Corpus
http://www.makina-corpus.org/