[Mono-list] Re: httpHandlers under mono

Michael Schwarz michael.schwarz at gmail.com
Fri Oct 14 12:01:19 EDT 2005


Is there a good live CD where I can test Ajax.NET, like copy the files
in a folder and start the web browser?

Regards,
Michael


On 14/10/05, Harry Holt <harryholt at gmail.com> wrote:
> yes, I have added
>
> AddHandler mono .ashx
>
> to the apache config.  I'm testing now under xsp, anyway, which doesn't use
> it, and getting the same results.  I have created a simple handler under
> mono (that just returns "Hello World" in the ProcessRequest method, and it
> works fine.
>
> So I guess handlers are working generically, but there is something in
> Ajax.net triggering a bug/issue in mono.
>
> Thx... HH
>
>
> On 10/14/05, Michael Schwarz < michael.schwarz at gmail.com> wrote:
> >
> > 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
> > >
> > >
> >
>
>
>
> --
> ====================================================
> Robbie the Nanobot says:
> "Only YOU can prevent gray goo
> (NEVER release nanobot assemblers without replication limiting code)"
> http://lizardslounge.org
>


More information about the Mono-list mailing list