[Mono-list] Re: httpHandlers under mono
Michael Schwarz
michael.schwarz at gmail.com
Fri Oct 14 11:23:12 EDT 2005
On IIS the file extension .ashx is mapped to the ASP.NET dll by
default, like the .aspx extension. Maybe you have to map the extension
in the web server configuration to the mono lib.
Regards,
Michael, http://ajaxpro.schwarz-interactive.de
On 14/10/05, Harry Holt <harryholt at gmail.com> wrote:
> Ok, I have an httpHandler that works fine under MS.NET. It doesn't seem to
> do anything under mod_mono (apache) or XSP. In my web.config file, 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 under
> SuSE 9.3.
>
> Thx... HH
>
>
More information about the Mono-list
mailing list