[Mono-list] Trap error 404 for non .aspx pages

Kornél Pál kornelpal at gmail.com
Wed May 17 11:13:19 EDT 2006


Just to make sure you din't miss anything:

If you use "ErrorDocument 404 /notfound.aspx" you have to have a 
notfound.aspx (or the file name you configured) otherwise Mono will generate 
a 404 error page (Server error in '/' application) because it cannot find 
notfound.aspx.

Kornél

----- Original Message ----- 
From: "Hamish Murphy" <camelweb at bigpond.com>
To: <mono-list at lists.ximian.com>
Sent: Wednesday, May 17, 2006 2:59 AM
Subject: [Mono-list] Trap error 404 for non .aspx pages


> Hi,
>
> I have a peculiar problem. I have a link to a pdf that doesn't exist on my
> website (Mono 1.1.7 on a Fedora Core 3 box with Apache 2.0.52). This is a
> known scenario and I would like to trap error 404 and display a custom 
> error
> message. I tried adding the <error> tag to the <customErrors> section in 
> the
> Web.config - but that's for .aspx pages only. I then added an 
> ErrorDocument
> directive to the Apache virtual server - but I get a Mono error instead
> (Server error in '/' application). So where can I configure this?
>
> Thanks,
>
> Camel
>


--------------------------------------------------------------------------------


> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



More information about the Mono-list mailing list