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 n
22, 2008 3:17 PM
Subject: [Mono-dev] Problems with IHttpHandler
> 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
Yes, this I've already done.
Basically I'm doing a catch all for the http handler, the entry for my web
config looks like so
I'm using for URL rewritting. and the HttpHandler i'm using looks like this:
(sorry if its a bit much, I just copy pasted the whole file)
using Syste
Hi!
Are you sure you run it with mod_mono_server2 rather than the default
mod_mono_server?
Cheers,
Michał Ziemski
Nik Radford pisze:
> Yes, this I've already done.
>
> Basically I'm doing a catch all for the http handler, the entry for my web
> config looks like so
>
>
> type="Ter
Yes. I added
MonoServerPath /usr/local/bin/mod-mono-server2
to the mod_mono.conf file before attempting this.
However, I've just been trying to create the test case, by creating a test
site and dll, and don't seem to be able to replicate the error. So now I'm
even more confused.
> Hi!
>
> Are
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:
If that doesn't help, please, post some code and the contents of we
I've discovered what makes it error, though not why.
As soon as I add a field (private field in this case) whatever handles the
HttpHandlers stop recognizing the custom handler as a valid IHttpHandler.
This is obviously incorrect, as other mono code (my program I mentioned)
does recognize it, and