[Mono-devel-list] HttpHandler
Cezar Nasui
cezar.nasui at polymtl.ca
Tue Sep 30 23:12:11 EDT 2003
Thanks Gonzalo for your reply.
The namespace is Acme, class SimpleHandler, file name Handler.cs ->
Handler.dll in /server/Test2/bin
My web.config is now :
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.hola" type="Acme.SimpleHandler, Handler" />
</httpHandlers>
</system.web>
</configuration>
but I get the same error even when I try to call a simple index.htm page
that resides under /server, page that shouldn't be processed by
handler..
I thought is an permission problem, change /Test2 and /bin permissions
to root and 777 and no luck,
One question : the web.config file you edited, is the one under /server
or /server/test ?
I know web.config file is for configuring each application = it should
be the one under /test but what it seems xsp reads is the one under
server... and each time I add the httphandlers in there I get the error
for any page I request.
Hola,
Cezar
On Tue, 2003-09-30 at 22:00, Gonzalo Paniagua Javier wrote:
> El mar, 30-09-2003 a las 21:51, Cezar Nasui escribió:
> > Does the handler works in XSP as is suppose to or am I doing something
> > wrong ?
> >
> > I tried a simple handler example :
> > - create a SimpleHandler which implements IHttpHandler, compile it to
> > dll and place it under /bin
> > - create a web.config file
> > Under xsp/server I created a directory for my application /Test2/ and
> > I installed /bin under it.
>
> I did this:
>
> -Create my IHttpHandler in myhandler.cs. The class is in
> namespace A and its name is B.
> -Compiled it to myhandler.dll
> -Put the dll in xsp/server/test/bin
> -Add a couple of <httpHandler> to web.config:
> <add verb="*" path="*.hola" type="A.B,myhandler" />
> <add verb="*" path="hola.aspx" type="A.B,myhandler" />
>
> And it worked fine for "*.hola" pages, but not for "hola.aspx". I've
> just fixed the case for "hola.aspx" in CVS.
>
> Is SimpleHandler.dll (with that exact typing) the name of your dll?
>
> -Gonzalo
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list