[Mono-list] httpHandlers under mono

Harry Holt harryholt at gmail.com
Fri Oct 14 10:07:23 EDT 2005


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 <0x0021e> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean
isAsync, Boolean anonymous)
in <0x0001f> System.IO.FileStream:.ctor (System.String name, FileMode
mode, FileAccess access, FileShare share)
in (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
in <0x00021> System.IO.File:OpenRead (System.String path)
in <0x0002c> System.Web.UI.SimpleWebHandlerParser:GetDirectivesAndContent ()
in <0x0015b> System.Web.UI.SimpleWebHandlerParser:.ctor
(System.Web.HttpContext context, System.String virtualPath,
System.String physicalPath)
in <0x00013> System.Web.UI.WebHandlerParser:.ctor
(System.Web.HttpContext context, System.String virtualPath,
System.String physicalPath)
in <0x00025> System.Web.UI.WebHandlerParser:GetCompiledType
(System.Web.HttpContext context, System.String virtualPath,
System.String physicalPath)
in <0x00018> System.Web.UI.SimpleHandlerFactory:GetHandler
(System.Web.HttpContext context, System.String requestType,
System.String virtualPath, System.String path)
in <0x001e1> System.Web.HttpApplication:GetHandler
(System.Web.HttpContext context)
in <0x00888> System.Web.HttpApplication+<Pipeline>__1:MoveNext ()


**Any ideas? Do I need to do something special for mono to implement a
handler? I'm not even sure how to debug this from the server. --verbose
doesn't really provide much information. I'm using version
1.1.9.2<http://1.1.9.2>under SuSE
9.3.

Thx... HH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051014/ec05185d/attachment.html


More information about the Mono-list mailing list