[Mono-dev] Problems with IHttpHandler

Michał Ziemski rook at roo.k.pl
Fri Feb 22 09:52:17 EST 2008


Hi!

I assume you precompile the assambly and put it in bin.
In this case you sould put the name of the assembly in httpHandlers 
section in web.config

Let's say the assembly is named "fooAssembly.dll". In that case add:
<httpHandlers>
      <add verb="POST" path="Execute" type="NamespaceMyType, fooAssembly"/>
</httpHandlers>

If that doesn't help, please, post some code and the contents of web.config.

Cheers,
Michał Ziemski

Nik Radford pisze:
> Hello all,
>
> I was wondering if someone could help me with this.
> I've written an ASP.NET website using visual studio 2005, and have written
> my own custom IHttpHandler. All works well, except when I move it over to
> my linux server and run it under mono.
>
> I get the error "(my http handler type) does not implement IHttpHandler or
> IHttpHandlerFactory"
>
> I then wrote a little program which I compiled under mono, to load the
> assembly my IHttpHandler type is in, and make sure that IHttpHandler could
> indeed be assigned from my type.
>
>     typeof(IHttpHandler).IsAssignableFrom(t);
>
> returned true.
>
> So I'm a little lost as to what is happening here.
>
> thanks in advance.
>
> Nik.
>
> ------------------------------------------
> E-Mail:    Nik at Terminaldischarge.net
> (We)Blog:  http://blog.terminaldischarge.net
>
> _______________________________________________
> 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