[Mono-list] Re: httpHandlers under mono

Robert Jordan robertj at gmx.net
Fri Oct 14 17:50:44 EDT 2005

Harry Holt wrote:
> Ok, I have an httpHandler that works fine under MS.NET <http://MS.NET>. It
> doesn't seem to do anything under mod_mono (apache) or XSP. In my
> web.configfile, I have:
> * <httpHandlers>
> <add verb="*" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
> </httpHandlers>
> *But navigating to http://site/ajax/common.ashx simply returns a "directory
> not found" with this stack trace:
> System.IO.DirectoryNotFoundException: Could not find a part of the
> path "/usr/share/TKWeb/ajax".


In the meanwhile you may either use just path=*.ashx", if your
site doesn't contain other *.ashx files, or create
the directory "ajax" and put a web.config file containing

<?xml version="1.0" encoding="utf-8"?>
                 <add verb="*" path="*.ashx" ... />

and remove the handler from the main web.config.


More information about the Mono-list mailing list